WO2019184679A1 - Method and device for implementing game, storage medium, and electronic apparatus - Google Patents

Method and device for implementing game, storage medium, and electronic apparatus Download PDF

Info

Publication number
WO2019184679A1
WO2019184679A1 PCT/CN2019/077416 CN2019077416W WO2019184679A1 WO 2019184679 A1 WO2019184679 A1 WO 2019184679A1 CN 2019077416 W CN2019077416 W CN 2019077416W WO 2019184679 A1 WO2019184679 A1 WO 2019184679A1
Authority
WO
WIPO (PCT)
Prior art keywords
human body
model
game
size
virtual character
Prior art date
Application number
PCT/CN2019/077416
Other languages
French (fr)
Chinese (zh)
Inventor
蓝和
谭筱
王健
邹奎
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019184679A1 publication Critical patent/WO2019184679A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/65Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor automatically by game devices or servers from real world data, e.g. measurement in live racing competition
    • A63F13/655Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor automatically by game devices or servers from real world data, e.g. measurement in live racing competition by importing photos, e.g. of the player
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/69Generating 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 by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
    • 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
    • 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/65Methods for processing data by generating or executing the game program for computing the condition of a game character

Definitions

  • the present application relates to the field of electronic technologies, and in particular, to a game implementation method, apparatus, storage medium, and electronic device.
  • the game is played by controlling a virtual character in the game.
  • the embodiment of the present application provides a game implementation method, device, storage medium, and electronic device, which can improve the authenticity of the game.
  • an embodiment of the present application provides a game implementation method, including:
  • the first mannequin When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
  • the embodiment of the present application further provides a game implementation apparatus, including:
  • a model establishing module configured to establish a first human body model according to the acquired human body information
  • a model adjustment module configured to reduce or enlarge the first human body model according to a virtual character model in the game to detect a startup game, to obtain a second human body model, and a size of the second human body model
  • the dimensions of the virtual character model are adapted
  • a replacement module configured to replace the virtual character model in the game with the second human body model
  • a decoration module configured to acquire a decoration piece of the virtual character model in the game, and add the decoration piece to the second human body model.
  • an embodiment of the present application further provides a storage medium, where the computer program stores a computer program, and when the computer program runs on a computer, causes the computer to perform the following steps:
  • the first mannequin When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
  • an embodiment of the present application further provides an electronic device, where the electronic device includes a processor and a memory, where the computer stores a computer program, and the processor calls the computer program stored in the memory , used to perform the following steps:
  • the first mannequin When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
  • FIG. 1 is a schematic diagram of a game interface in an embodiment of the present application.
  • FIG. 2 is a schematic flowchart diagram of a game implementation method according to an embodiment of the present application.
  • FIG. 3 is another schematic flowchart of a game implementation method according to an embodiment of the present application.
  • FIG. 4 is still another schematic flowchart of a game implementation method according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a first human body model in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a second human body model in the embodiment of the present application.
  • FIG. 7 is another schematic diagram of a game interface in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a first structure of a game implementation apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a second structure of a game implementation apparatus according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of a third structure of a game implementation apparatus according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a fourth structure of a game implementation apparatus according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic diagram of a fifth structure of a game implementation apparatus according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 14 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a game interface in an embodiment of the present application.
  • the game interface can display the virtual character model in the game and various attributes of the character. Users can get an intuitive feeling of the game character through the virtual character model. And, through the various attributes of the character, the user can know the various game abilities of the game character. In the process of the user playing the game with others, the user can implement various game functions by controlling the virtual character model.
  • the embodiment of the present application provides a game implementation method, including:
  • the first mannequin When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
  • the acquiring the decorative piece of the virtual character model in the game, and adding the decorative piece to the second human body model includes:
  • the decorative piece is added to a body part corresponding to the second human body model.
  • the method further includes:
  • the preset trim is added to the first mannequin.
  • the first human body model is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, including:
  • the first human body model is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, including:
  • the first human body model is reduced
  • the first human body model is enlarged when the size of the first human body model is smaller than the size of the virtual human model.
  • the step of establishing the first human body model according to the acquired human body information includes:
  • a first human body model is established based on the plurality of locations and the size of each of the locations.
  • the method further includes:
  • the second human body model is controlled according to the control instruction.
  • the embodiment of the present application provides a game implementation method, and the game implementation method can be applied to an electronic device.
  • the electronic device may be a device such as a smart phone or a tablet computer.
  • the game implementation method may include the following steps:
  • the electronic device can acquire various information of the human body and establish a first human body model according to the acquired human body information.
  • the first human body model can visually express the characteristics of the human body, and the first human body model is as shown in FIG. 5.
  • the plurality of pieces of information may include information such as height, weight, and size of the human body, and may also include dimensions of various parts of the human body, for example, may include sizes of a plurality of parts such as a human head, a hand, and a leg.
  • the amount of information of the human body information determines how fine the first human body model is.
  • the established first human body model can be made very realistic, and the size of each body part in the first human body model can be very close to the real size of the human body.
  • the human body may be the user of the electronic device itself, or may be other than the user, for example, a friend of the user or the like.
  • the virtual character model in the game can be acquired.
  • the game may be a game installed in an electronic device.
  • the game can be a variety of types of games such as role-playing, e-sports, and simulation.
  • the game includes a virtual character model.
  • a game interface of the game is shown in FIG.
  • the user implements the game function by controlling the virtual character model during the game. For example, the user can play against other player-controlled avatar models by controlling the avatar model.
  • the first human body model is reduced or enlarged according to the virtual character model to obtain a second human body model, and the size of the second human body model is adapted to the size of the virtual character model.
  • the virtual character model in the game has a preset size.
  • the virtual character model has a preset height, head size, leg length, and the like.
  • the size of the virtual character model in the game is usually small, so that the virtual character model can be displayed on the screen of the electronic device.
  • the virtual character model has a height of 3 cm (cm).
  • the first human body model is established according to the acquired human body information, so that the size of the first human body model is usually large.
  • the height of the first mannequin is 170 cm (cm).
  • the first human body model needs to be reduced.
  • the data unit (for example, the unit of height and the unit of weight) in the obtained human body information may be large, and the actual data in the human body information is small, and the first human body model established at this time is established.
  • the size is small.
  • the height of the obtained human body information is in meters, and the data acquired at this time may be 1.7 m (meter), so that the first human body model established is small. At this time, it is necessary to enlarge the first human body model.
  • the electronic device may reduce or enlarge the first human body model according to the virtual character model to obtain a second human body model.
  • the electronic device may acquire a size of the virtual character model in the game, and compare the size of the first human body model with the size of the virtual character model to obtain the size of the first human body model and the virtual The size relationship between the dimensions of the character model.
  • the size of the first human body model is larger than the size of the virtual character model, the first human body model is reduced; when the size of the first human body model is smaller than the size of the virtual human model, The first human body model is enlarged.
  • the size of the second human body model is adapted to the size of the virtual character model.
  • the second human body model is shown in FIG. 6. It can be understood that the size of the second human body model is adapted to the size of the virtual character model, that is, the difference between the size of the second human body model and the size of the virtual character model is acceptable. Within the scope.
  • the virtual character model in the game is replaced with the second human body model. Specifically, the electronic device first deletes the virtual character model in the game, and then adds the second human body model to the game.
  • the game interface after replacing the virtual character model in the game with the second human body model is as shown in FIG. 7.
  • the decorative piece of the virtual character model may be further acquired.
  • the decorative piece may be a clothing, a hair accessory, or the like worn by the virtual character model in the game, or may be an item, an item, or the like used by the virtual character model.
  • the decorative piece may be an item such as a garment, a glove, a hand-held weapon, or the like worn by the virtual character model in the game.
  • the electronic device adds the acquired decoration to the second mannequin.
  • the electronic device can integrate the human body model of the real character into the game, and the decorative piece equipped for the virtual character model in the game can be added to the human body model of the real character, so that the character model in the game is more realistic and improved.
  • the authenticity of the game can also improve the fun of the user's game.
  • step 110 establishing a first human body model according to the acquired human body information, including the following steps:
  • the electronic device can have a camera.
  • the electronic device can take a photo of the human body multiple times through the camera, thereby acquiring the whole body image of the human body multiple times.
  • the electronic device can recognize the whole body image after acquiring a whole body image of the human body.
  • the electronic device can recognize the plurality of parts of the human body and the size of each of the parts by recognizing a plurality of whole body images of the human body.
  • the electronic device can recognize the height and width of the head of the human body, the length of the hand and the thickness of the finger, the size of the waist, the length and diameter of the leg, and the like by recognizing the plurality of images.
  • the electronic device establishes a first human body model based on the plurality of locations and the size of each of the locations.
  • the first human body model can visually and comprehensively display the size of each part of the human body.
  • step 130 reducing or enlarging the first human body model according to the virtual character model to obtain a second human body model, the size and the second human body model
  • the dimensions of the avatar model are adapted to include the following steps:
  • the first human body model is reduced or enlarged according to the first size to obtain a second human body model, and a size of the preset portion of the second human body model is equal to the first size.
  • a reference portion may be selected on the virtual character model.
  • one part of the virtual character model may be set in advance as a reference part.
  • the head of the virtual character model can be set as a reference portion. It can be understood that the whole body of the virtual character model can also be set as a reference part.
  • the electronic device can acquire the first size of the virtual character model.
  • the first size is a size of a preset portion of the virtual character model.
  • the preset part is a reference part preset on the virtual character model.
  • the first size is one size of the reference portion.
  • the reference location is the head of the virtual character model, and the first size may be the height of the head.
  • the electronic device may reduce or enlarge the first human body model according to the first size to obtain a second human body model.
  • the size of the preset portion of the second human body model is equal to the first size.
  • the preset portion is a head
  • the first size is a height of the head
  • the height of the head of the obtained second human body model is equal to the first size.
  • step 150 acquiring a decorative piece of the virtual character model in the game, and adding the decorative piece to the second human body model includes the following steps:
  • the electronic device can identify a plurality of body parts of the virtual character model in the game, and respectively acquire the decorative pieces of the plurality of body parts.
  • the electronic device can recognize a plurality of parts such as a head, a hand, a waist, and a leg of the virtual character model. Subsequently, the decorative pieces worn by each of the identified head, hand, waist, legs, and the like are respectively obtained.
  • the electronic device can identify a plurality of body parts of the second mannequin and add the acquired decorative pieces to the body part corresponding to the second mannequin. For example, a garnish obtained from a head of the avatar model may be added to a head of the second mannequin, and a garnish acquired from a hand of the avatar model may be added to the Two human models of the hand, and so on.
  • the following steps may be further included:
  • the gender information of the human body may be further acquired.
  • the electronic device may acquire gender information of the human body by recognizing a whole body image of the human body or identifying a face of the human body.
  • the electronic device can directly receive the gender information input by the user.
  • the preset decorative piece may be a decorative item set in advance.
  • the preset decorative piece may be a decorative piece such as a bow tie, a bracelet, a waist ornament, or the like.
  • the preset decorative pieces can be decorative pieces such as hats, cloaks, gloves, and the like.
  • the preset decoration may be added to the first human body model to beautify the first human body model, so that the first human body model is more Aesthetics can also increase the user's preference for the first mannequin.
  • step 150 acquiring the decoration piece of the virtual character model in the game, and adding the decoration piece to the second human body model, the following steps are further included. :
  • the electronic device controls the virtual character model according to a control instruction triggered by the user. For example, the electronic device controls the virtual character model movement according to a movement instruction triggered by the user, and controls the virtual character model to perform an attack according to an attack instruction triggered by the user.
  • a control instruction for the virtual character model in the game may be acquired.
  • the control command is a game instruction such as a move instruction or an attack command triggered by the user on the electronic device.
  • the electronic device controls the second human body model according to the control instruction to implement a user to control the second human body model to play the game.
  • the game implementation method provided by the embodiment of the present application includes: establishing a first human body model according to the acquired human body information; acquiring a virtual character model in the game when detecting the startup of the game; The model reduces or enlarges the first human body model to obtain a second human body model; replaces the virtual character model in the game with the second human body model; and acquires the virtual character model in the game a decorative piece and adding the decorative piece to the second mannequin.
  • a human body model of a real character can be incorporated into the game, and a decorative piece equipped with a virtual character model in the game can be added to the human body model of the real character, so that the character model in the game is more realistic. Improve the authenticity of the game.
  • the embodiment of the present application further provides a game implementation apparatus, including:
  • a model establishing module configured to establish a first human body model according to the acquired human body information
  • a model adjustment module configured to reduce or enlarge the first human body model according to a virtual character model in the game to detect a startup game, to obtain a second human body model, and a size of the second human body model
  • the dimensions of the virtual character model are adapted
  • a replacement module configured to replace the virtual character model in the game with the second human body model
  • a decoration module configured to acquire a decoration piece of the virtual character model in the game, and add the decoration piece to the second human body model.
  • the decorating module is for:
  • the decorative piece is added to a body part corresponding to the second human body model.
  • the game implementing apparatus further includes an adding module, the adding module is configured to:
  • the preset trim is added to the first mannequin.
  • the model adjustment module comprises:
  • a first acquiring submodule configured to acquire a first size of the virtual character model in the game when the game is started, where the first size is a size of the preset part of the virtual character model;
  • the model adjustment module is used to:
  • the first human body model is reduced
  • the first human body model is enlarged when the size of the first human body model is smaller than the size of the virtual human model.
  • the model building module includes:
  • a second acquisition sub-module for acquiring a whole body image of the human body multiple times
  • the model establishing submodule is configured to establish a first human body model according to the plurality of parts and the size of each of the parts.
  • the game implementing device further includes a control module, the control module is configured to:
  • the second human body model is controlled according to the control instruction.
  • the embodiment of the present application further provides a game implementation device, which may be integrated into an electronic device, and the electronic device may be a device such as a smart phone or a tablet computer.
  • the game implementation apparatus 200 may include: a model creation module 201 , an acquisition module 202 , a model adjustment module 203 , a replacement module 204 , and a decoration module 205 .
  • the model establishing module 201 is configured to establish a first human body model according to the acquired human body information.
  • the model establishing module 201 can acquire various information of the human body, and establish a first human body model according to the acquired human body information.
  • the first human body model can visually express the characteristics of the human body.
  • the plurality of pieces of information may include information such as height, weight, and size of the human body, and may also include dimensions of various parts of the human body, for example, may include sizes of a plurality of parts such as a human head, a hand, and a leg.
  • the amount of information of the human body information determines how fine the first human body model is.
  • the established first human body model can be made very realistic, and the size of each body part in the first human body model can be very close to the real size of the human body.
  • the human body may be the user of the electronic device itself, or may be other than the user, for example, a friend of the user.
  • the obtaining module 202 is configured to acquire a virtual character model in the game when the startup game is detected.
  • the acquisition module 202 can acquire a virtual character model in the game.
  • the game may be a game installed in an electronic device.
  • the game can be a variety of types of games such as role-playing, e-sports, and simulation.
  • the game includes a virtual character model.
  • the user implements the game function by controlling the virtual character model during the game. For example, the user can play against other player-controlled avatar models by controlling the avatar model.
  • the model adjustment module 203 is configured to reduce or enlarge the first human body model according to the virtual character model to obtain a second human body model, and the size of the second human body model is compatible with the size of the virtual human model Match.
  • the virtual character model in the game has a preset size.
  • the virtual character model has a preset height, head size, leg length, and the like.
  • the size of the virtual character model in the game is usually small, so that the virtual character model can be displayed on the screen of the electronic device.
  • the virtual character model has a height of 3 cm (cm).
  • the first human body model is established according to the acquired human body information, so that the size of the first human body model is usually large.
  • the height of the first mannequin is 170 cm (cm).
  • the first human body model needs to be reduced.
  • the data unit (for example, the unit of height and the unit of weight) in the obtained human body information may be large, and the actual data in the human body information is small, and the first human body model established at this time is established.
  • the size is small.
  • the height of the obtained human body information is in meters, and the data acquired at this time may be 1.7 m (meter), so that the first human body model established is small. At this time, it is necessary to enlarge the first human body model.
  • the model adjustment module 203 may reduce or enlarge the first human body model according to the virtual character model to obtain a second human body model.
  • the model adjustment module 203 may acquire the size of the virtual character model in the game, and compare the size of the first human body model with the size of the virtual character model to obtain the size and location of the first human body model. The size relationship between the dimensions of the avatar model. When the size of the first human body model is larger than the size of the virtual character model, the first human body model is reduced; when the size of the first human body model is smaller than the size of the virtual human model, The first human body model is enlarged.
  • the size of the second human body model is adapted to the size of the virtual character model. It can be understood that the size of the second human body model is adapted to the size of the virtual character model, that is, the difference between the size of the second human body model and the size of the virtual character model is acceptable. Within the scope.
  • the replacement module 204 is configured to replace the virtual character model in the game with the second human body model.
  • the replacement module 204 replaces the virtual character model in the game with the second human body model. Specifically, the replacement module 204 first deletes the virtual character model in the game, and then adds the second human body model to the game.
  • the human body model of the real person can be incorporated into the game, so that the character model in the game is more realistic, the authenticity of the game is improved, and the fun of the user's game can be improved.
  • the decoration module 205 is configured to acquire a decoration piece of the virtual character model in the game, and add the decoration piece to the second human body model.
  • the decoration module 205 may further acquire the decoration of the virtual character model.
  • the decorative piece may be a clothing, a hair accessory, or the like worn by the virtual character model in the game, or may be an item, an item, or the like used in the virtual character model.
  • the decorative piece may be an item such as a garment, a glove, a hand-held weapon, or the like worn by the virtual character model in the game.
  • the decoration module 205 adds the acquired decoration to the second mannequin.
  • the model building module 201 includes: a second obtaining sub-module 2011, an identifying sub-module 2012, and a model building sub-module 2013.
  • the identification sub-module 2012 is configured to respectively identify each of the whole body images to identify a plurality of parts of the human body and a size of each of the parts;
  • the model building sub-module 2013 is configured to establish a first human body model according to the plurality of parts and the size of each of the parts.
  • the electronic device can have a camera.
  • the second acquisition sub-module 2011 can take a photo of the human body multiple times through the camera, thereby acquiring the whole body image of the human body multiple times.
  • the recognition sub-module 2012 can identify the whole body image.
  • the recognition sub-module 2012 can identify the plurality of parts of the human body and the size of each of the parts by recognizing a plurality of whole body images of the human body.
  • the recognition sub-module 2012 can identify the height and width of the head of the human body, the length of the hand and the thickness of the finger, the size of the waist, the length and diameter of the leg, and the like by recognizing the plurality of images.
  • the model building sub-module 2013 establishes a first human body model based on the plurality of locations and the size of each of the locations.
  • the first human body model can visually and comprehensively display the size of each part of the human body.
  • the model adjustment module 203 includes: a first acquisition sub-module 2031 and an adjustment sub-module 2032.
  • a first acquiring sub-module 2031 configured to acquire a first size of the virtual character model, where the first size is a size of a preset part of the virtual character model;
  • the adjustment sub-module 2032 is configured to reduce or enlarge the first human body model according to the first size to obtain a second human body model, and the size of the preset portion of the second human body model and the first One size is equal.
  • a reference portion may be selected on the virtual character model.
  • one part of the virtual character model may be set in advance as a reference part.
  • the head of the virtual character model can be set as a reference portion. It can be understood that the whole body of the virtual character model can also be set as a reference part.
  • the first obtaining submodule 2031 may acquire the first size of the virtual character model.
  • the first size is a size of a preset portion of the virtual character model.
  • the preset part is a reference part preset on the virtual character model.
  • the first size is one size of the reference portion.
  • the reference location is the head of the virtual character model, and the first size may be the height of the head.
  • the adjustment sub-module 2032 may reduce or enlarge the first human body model according to the first size to obtain a second human body model.
  • the size of the preset portion of the second human body model is equal to the first size.
  • the preset portion is a head
  • the first size is a height of the head
  • the height of the head of the obtained second human body model is equal to the first size.
  • the decoration module 205 is configured to perform the following steps:
  • the decorative piece is added to a body part corresponding to the second human body model.
  • the decoration module 205 can identify a plurality of body parts of the virtual character model in the game, and respectively acquire the decorative pieces of the plurality of body parts. For example, the decoration module 205 can recognize a plurality of parts such as a head, a hand, a waist, a leg, and the like of the virtual character model. Subsequently, the decorative pieces worn by each of the identified head, hand, waist, legs, and the like are respectively obtained.
  • the decoration module 205 can identify a plurality of body parts of the second mannequin and add the acquired decoration to the body part corresponding to the second mannequin. For example, a garnish obtained from a head of the avatar model may be added to a head of the second mannequin, and a garnish acquired from a hand of the avatar model may be added to the Two human models of the hand, and so on.
  • the game implementation device 200 also includes an add module 206.
  • the adding module 206 is configured to perform the following steps:
  • the trim piece is added to the first mannequin.
  • the adding module 206 may further acquire the gender information of the human body.
  • the adding module 206 may acquire gender information of the human body by identifying a whole body image of the human body or identifying a face of the human body.
  • the adding module 206 can also directly receive the gender information input by the user.
  • the adding module 206 acquires a preset decoration according to the gender information.
  • the preset decorative piece may be a decorative item set in advance.
  • the preset decorative piece may be a decorative piece such as a bow tie, a bracelet, a waist ornament, or the like.
  • the preset decorative pieces can be decorative pieces such as hats, cloaks, gloves, and the like.
  • the preset decoration may be added to the first human body model to beautify the first human body model, so that the first human body model is further Aesthetically, the user's preference for the first mannequin can also be improved.
  • the game implementation device 200 also includes a control module 207.
  • the control module 207 is configured to perform the following steps:
  • the second human body model is controlled according to the control instruction.
  • the electronic device controls the virtual character model according to a control instruction triggered by the user. For example, the electronic device controls the virtual character model movement according to a movement instruction triggered by the user, and controls the virtual character model to perform an attack according to an attack instruction triggered by the user.
  • the control module 207 may acquire the control of the virtual character model in the game. instruction.
  • the control command is a game instruction such as a move instruction or an attack command triggered by the user on the electronic device.
  • the control module 207 controls the second human body model according to the control instruction to implement a user to control the second human body model to play the game.
  • each of the above modules may be implemented as a separate entity, or may be implemented in any combination as one or several entities.
  • the game implementation device 200 establishes a first human body model according to the acquired human body information by the model establishing module 201.
  • the acquisition module 202 acquires the virtual human character in the game when detecting the startup of the game. a model; the model adjustment module 203 reduces or enlarges the first human body model according to the virtual character model to obtain a second human body model; and the replacement module 204 replaces the virtual character model in the game with the first a human body model; the decoration module 205 acquires a decorative piece of the virtual character model in the game, and adds the decorative piece to the second human body model.
  • the game implementing device can integrate the human body model of the real character into the game, and can add the decorative piece equipped in the game for the virtual character model to the human body model of the real character, so that the character model in the game is more realistic and the game is improved. Authenticity.
  • An embodiment of the present application further provides an electronic device.
  • the electronic device may be a device such as a smart phone or a tablet computer.
  • the electronic device 300 includes a processor 301 and a memory 302.
  • the processor 301 is electrically connected to the memory 302.
  • the processor 301 is a control center of the electronic device 300, and connects various parts of the entire electronic device using various interfaces and lines, and executes the electronic by running or calling a computer program stored in the memory 302 and calling data stored in the memory 302.
  • the various functions and processing data of the device enable overall monitoring of the electronic device.
  • the processor 301 in the electronic device 300 loads the instructions corresponding to the processes of one or more computer programs into the memory 302 according to the following steps, and is executed by the processor 301 to be stored in the memory 302.
  • the first mannequin When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
  • the processor 301 when the decoration of the virtual character model in the game is acquired and the decoration is added to the second human body model, the processor 301 performs the following steps:
  • the decorative piece is added to a body part corresponding to the second human body model.
  • the processor 301 is further configured to perform the following steps:
  • the preset trim is added to the first mannequin.
  • the processor 301 when the startup game is detected, the first human body model is reduced or enlarged according to the virtual character model in the game to obtain the second human body model, and the processor 301 performs the following steps:
  • the processor 301 when detecting the start of the game, the first human body model is reduced or enlarged according to the virtual character model in the game to obtain the second human body model, the processor 301 is configured to execute The following steps:
  • the first human body model is reduced
  • the first human body model is enlarged when the size of the first human body model is smaller than the size of the virtual human model.
  • the processor 301 when the first human body model is established according to the acquired human body information, the processor 301 performs the following steps:
  • a first human body model is established based on the plurality of locations and the size of each of the locations.
  • the processor 301 after acquiring the decoration of the virtual character model in the game and adding the decoration to the second mannequin, the processor 301 further performs the following steps:
  • the second human body model is controlled according to the control instruction.
  • Memory 302 can be used to store computer programs and data.
  • the computer program stored in the memory 302 contains instructions executable in the processor.
  • Computer programs can be combined into various functional modules.
  • the processor 301 executes various functional applications and data processing by calling a computer program stored in the memory 302.
  • the electronic device 300 further includes a radio frequency circuit 303, a display screen 304, a control circuit 305, an input unit 306, an audio circuit 307, a sensor 308, and a power source 309.
  • the processor 301 is electrically connected to the radio frequency circuit 303, the display screen 304, the control circuit 305, the input unit 306, the audio circuit 307, the sensor 308, and the power source 309, respectively.
  • the radio frequency circuit 303 is configured to transceive radio frequency signals to communicate with network devices or other electronic devices through wireless communication.
  • the display screen 304 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be composed of images, text, icons, video, and any combination thereof.
  • the control circuit 305 is electrically connected to the display screen 304 for controlling the display screen 304 to display information.
  • the input unit 306 can be configured to receive input digits, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.
  • the input unit 306 can include a fingerprint identification module.
  • the audio circuit 307 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
  • Sensor 308 is used to collect external environmental information.
  • Sensor 308 can include one or more of ambient brightness sensors, acceleration sensors, gyroscopes, and the like.
  • Power source 309 is used to power various components of electronic device 300.
  • the power source 309 can be logically coupled to the processor 301 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
  • the electronic device 300 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • an embodiment of the present application provides an electronic device, where the electronic device performs the following steps: establishing a first human body model according to the acquired human body information; and acquiring a virtual character in the game when detecting the startup of the game a model; reducing or enlarging the first human body model according to the virtual character model to obtain a second human body model; replacing the virtual character model in the game with the second human body model; acquiring the A decorative piece of the virtual character model in the game, and adding the decorative piece to the second mannequin.
  • the electronic device can integrate the human body model of the real character into the game, and can add the decorative piece equipped in the game for the virtual character model to the human body model of the real character, so that the character model in the game is more realistic and improves the game. Authenticity.
  • the embodiment of the present application further provides a storage medium, where the computer program stores a computer program, and when the computer program runs on a computer, the computer executes the game implementation method described in any of the above embodiments.
  • the computer program when the computer program is run on a computer, the computer performs the following steps:
  • the first mannequin When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
  • the storage medium may include, but is not limited to, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

A method for implementing a game comprises: establishing a first body model according to acquired body information; upon detecting the start of a game, enlarging or shrinking, according to a virtual character model of the game, the first body model to obtain a second body model; replacing the virtual character model with the second body model; and acquiring accessories of the virtual character model, and attaching the accessories to the second body model. Also provided are a device for implementing a game, a storage medium, and an electronic apparatus. In the invention, a body model of a real person can be integrated into a game, and accessories of a virtual character model of the game can be attached to the body of the real person, such that a character model of the game is more realistic, thereby increasing the sense of reality of the game.

Description

游戏实现方法、装置、存储介质及电子设备Game implementation method, device, storage medium and electronic device
本申请要求于2018年03月26日提交中国专利局、申请号为201810253989.5、发明名称为“游戏实现方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201101253989.5, entitled "Game Implementation Method, Apparatus, Storage Medium, and Electronic Equipment", filed on March 26, 2018, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本申请涉及电子技术领域,特别涉及一种游戏实现方法、装置、存储介质及电子设备。The present application relates to the field of electronic technologies, and in particular, to a game implementation method, apparatus, storage medium, and electronic device.
背景技术Background technique
随着电子技术的发展,用户可以通过诸如智能手机等电子设备实现越来越多的功能。例如,用户可以通过电子设备体验各种各样的游戏。With the development of electronic technology, users can realize more and more functions through electronic devices such as smart phones. For example, users can experience a wide variety of games through electronic devices.
当前,用户通过电子设备进行游戏时,是通过控制游戏中的虚拟角色来进行游戏的。Currently, when a user plays a game through an electronic device, the game is played by controlling a virtual character in the game.
发明内容Summary of the invention
本申请实施例提供一种游戏实现方法、装置、存储介质及电子设备,可以提高游戏的真实性。The embodiment of the present application provides a game implementation method, device, storage medium, and electronic device, which can improve the authenticity of the game.
第一方面,本申请实施例提供一种游戏实现方法,包括:In a first aspect, an embodiment of the present application provides a game implementation method, including:
根据获取到的人体信息建立第一人体模型;Establishing a first human body model according to the acquired human body information;
当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;Substituting the virtual character model in the game with the second human body model;
获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。Acquiring a decorative piece of the virtual character model in the game, and adding the decorative piece to the second mannequin.
第二方面,本申请实施例还提供一种游戏实现装置,包括:In a second aspect, the embodiment of the present application further provides a game implementation apparatus, including:
模型建立模块,用于根据获取到的人体信息建立第一人体模型;a model establishing module, configured to establish a first human body model according to the acquired human body information;
模型调整模块,用于当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;a model adjustment module, configured to reduce or enlarge the first human body model according to a virtual character model in the game to detect a startup game, to obtain a second human body model, and a size of the second human body model The dimensions of the virtual character model are adapted;
替换模块,用于将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;a replacement module, configured to replace the virtual character model in the game with the second human body model;
装饰模块,用于获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。And a decoration module, configured to acquire a decoration piece of the virtual character model in the game, and add the decoration piece to the second human body model.
第三方面,本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行以下步骤:In a third aspect, an embodiment of the present application further provides a storage medium, where the computer program stores a computer program, and when the computer program runs on a computer, causes the computer to perform the following steps:
根据获取到的人体信息建立第一人体模型;Establishing a first human body model according to the acquired human body information;
当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;Substituting the virtual character model in the game with the second human body model;
获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。Acquiring a decorative piece of the virtual character model in the game, and adding the decorative piece to the second mannequin.
第四方面,本申请实施例还提供一种电子设备,所述电子设备包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行以下步骤:In a fourth aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a processor and a memory, where the computer stores a computer program, and the processor calls the computer program stored in the memory , used to perform the following steps:
根据获取到的人体信息建立第一人体模型;Establishing a first human body model according to the acquired human body information;
当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小 或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;Substituting the virtual character model in the game with the second human body model;
获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。Acquiring a decorative piece of the virtual character model in the game, and adding the decorative piece to the second mannequin.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1为本申请实施例中游戏界面的示意图。FIG. 1 is a schematic diagram of a game interface in an embodiment of the present application.
图2为本申请实施例提供的游戏实现方法的流程示意图。FIG. 2 is a schematic flowchart diagram of a game implementation method according to an embodiment of the present application.
图3为本申请实施例提供的游戏实现方法的另一流程示意图。FIG. 3 is another schematic flowchart of a game implementation method according to an embodiment of the present application.
图4为本申请实施例提供的游戏实现方法的又一流程示意图。FIG. 4 is still another schematic flowchart of a game implementation method according to an embodiment of the present application.
图5为本申请实施例中的第一人体模型的示意图。FIG. 5 is a schematic diagram of a first human body model in an embodiment of the present application.
图6为本申请实施例中的第二人体模型的示意图。FIG. 6 is a schematic diagram of a second human body model in the embodiment of the present application.
图7为本申请实施例中游戏界面的另一示意图。FIG. 7 is another schematic diagram of a game interface in an embodiment of the present application.
图8为本申请实施例提供的游戏实现装置的第一种结构示意图。FIG. 8 is a schematic diagram of a first structure of a game implementation apparatus according to an embodiment of the present application.
图9为本申请实施例提供的游戏实现装置的第二种结构示意图。FIG. 9 is a schematic diagram of a second structure of a game implementation apparatus according to an embodiment of the present disclosure.
图10为本申请实施例提供的游戏实现装置的第三种结构示意图。FIG. 10 is a schematic diagram of a third structure of a game implementation apparatus according to an embodiment of the present application.
图11为本申请实施例提供的游戏实现装置的第四种结构示意图。FIG. 11 is a schematic diagram of a fourth structure of a game implementation apparatus according to an embodiment of the present disclosure.
图12为本申请实施例提供的游戏实现装置的第五种结构示意图。FIG. 12 is a schematic diagram of a fifth structure of a game implementation apparatus according to an embodiment of the present disclosure.
图13为本申请实施例提供的电子设备的结构示意图。FIG. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
图14为本申请实施例提供的电子设备的另一结构示意图。FIG. 14 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described in the following with reference to the accompanying drawings in the embodiments. It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts are within the scope of the present application.
本申请的说明书和权利要求书以及上述附图中的术语“第一”、“第二”、“第三”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应当理解,这样描述的对象在适当情况下可以互换。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤的过程、方法或包含了一系列模块或单元的装置、电子设备、系统不必限于清楚地列出的那些步骤或模块或单元,还可以包括没有清楚地列出的步骤或模块或单元,也可以包括对于这些过程、方法、装置、电子设备或系统固有的其它步骤或模块或单元。The terms "first", "second", "third", etc. (if present) in the specification and claims of the present application and the above figures are used to distinguish similar objects, and are not necessarily used to describe a particular order. Or prioritization. It should be understood that the objects so described are interchangeable where appropriate. Moreover, the terms "comprising" and "having" and "the" are intended For example, a process, method, or a device, an electronic device, or a system comprising a series of modules or units, is not necessarily limited to those steps or modules or units that are clearly listed, and may include steps that are not explicitly listed. Or modules or units may also include other steps or modules or units inherent to such processes, methods, apparatuses, electronic devices or systems.
参考图1,图1为本申请实施例中游戏界面的示意图。其中,游戏界面可以显示游戏中的虚拟人物模型以及人物的多种属性。用户可以通过虚拟人物模型获得对游戏角色的直观感受。并且,通过人物的多种属性,用户可以获知游戏角色的各种游戏能力。在用户与他人进行游戏的过程中,用户即可以通过控制所述虚拟人物模型来实现各种游戏功能。Referring to FIG. 1, FIG. 1 is a schematic diagram of a game interface in an embodiment of the present application. Among them, the game interface can display the virtual character model in the game and various attributes of the character. Users can get an intuitive feeling of the game character through the virtual character model. And, through the various attributes of the character, the user can know the various game abilities of the game character. In the process of the user playing the game with others, the user can implement various game functions by controlling the virtual character model.
本申请实施例提供一种游戏实现方法,包括:The embodiment of the present application provides a game implementation method, including:
根据获取到的人体信息建立第一人体模型;Establishing a first human body model according to the acquired human body information;
当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适 配;When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;Substituting the virtual character model in the game with the second human body model;
获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。Acquiring a decorative piece of the virtual character model in the game, and adding the decorative piece to the second mannequin.
在一些实时中,所述获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上,包括:In some real-times, the acquiring the decorative piece of the virtual character model in the game, and adding the decorative piece to the second human body model, includes:
获取所述游戏中所述虚拟人物模型多个身体部位的装饰件;Obtaining a decorative piece of the plurality of body parts of the virtual character model in the game;
将所述装饰件添加到所述第二人体模型对应的身体部位上。The decorative piece is added to a body part corresponding to the second human body model.
在一些实时中,所述根据获取到的人体信息建立第一人体模型之后,还包括:In some real-times, after the first human body model is established according to the acquired human body information, the method further includes:
获取所述人体的性别信息;Obtaining gender information of the human body;
根据所述性别信息获取预设装饰件;Obtaining a preset decoration according to the gender information;
将所述预设装饰件添加至所述第一人体模型。The preset trim is added to the first mannequin.
在一些实时中,所述当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,包括:In some real-times, when the game is started, the first human body model is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, including:
当检测到启动游戏时,获取所述游戏中所述虚拟人物模型的第一尺寸,所述第一尺寸为所述虚拟人物模型预设部位的尺寸;Obtaining, when the game is started, a first size of the virtual character model in the game, the first size being a size of a preset part of the virtual character model;
根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。And reducing or enlarging the first human body model according to the first size to obtain a second human body model, wherein a size of the preset portion of the second human body model is equal to the first size.
在一些实时中,所述当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,包括:In some real-times, when the game is started, the first human body model is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, including:
当检测到启动游戏时,获取所述游戏中的虚拟人物模型的尺寸;Obtaining a size of the virtual character model in the game when the game is started is detected;
将所述第一人体模型的尺寸与所述虚拟人物模型的尺寸进行比较,以得到所述第一人体模型的尺寸与所述虚拟人物模型的尺寸之间的大小关系;Comparing a size of the first human body model with a size of the virtual character model to obtain a size relationship between a size of the first human body model and a size of the virtual character model;
当所述第一人体模型的尺寸大于所述虚拟人物模型的尺寸时,对所述第一人体模型进行缩小;When the size of the first human body model is larger than the size of the virtual character model, the first human body model is reduced;
当所述第一人体模型的尺寸小于所述虚拟人物模型的尺寸时,对所述第一人体模型进行放大。The first human body model is enlarged when the size of the first human body model is smaller than the size of the virtual human model.
在一些实时中,所述根据获取到的人体信息建立第一人体模型的步骤包括:In some real-time, the step of establishing the first human body model according to the acquired human body information includes:
多次获取人体的全身图像;Obtaining a full-body image of the human body several times;
分别对每一幅所述全身图像进行识别,以识别出所述人体的多个部位以及每个所述部位的尺寸;Identifying each of the whole body images separately to identify a plurality of parts of the human body and a size of each of the parts;
根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。A first human body model is established based on the plurality of locations and the size of each of the locations.
在一些实时中,获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上之后,还包括:In some real-times, after acquiring the decorative piece of the virtual character model in the game and adding the decorative piece to the second human body model, the method further includes:
获取所述游戏中对所述虚拟人物模型的控制指令;Obtaining a control instruction for the virtual character model in the game;
根据所述控制指令控制所述第二人体模型。The second human body model is controlled according to the control instruction.
本申请实施例提供一种游戏实现方法,所述游戏实现方法可以应用于电子设备中。所述电子设备可以是智能手机、平板电脑等设备。如图2所示,所述游戏实现方法,可以包括以下步骤:The embodiment of the present application provides a game implementation method, and the game implementation method can be applied to an electronic device. The electronic device may be a device such as a smart phone or a tablet computer. As shown in FIG. 2, the game implementation method may include the following steps:
110,根据获取到的人体信息建立第一人体模型。110. Establish a first human body model according to the acquired human body information.
电子设备可以获取人体的多种信息,并根据获取到的人体信息建立第一人体模型。所述第一人体模型可以直观地表现出人体的特征,所述第一人体模型如图5所示。所述多种信息可以包括人体的身高、体重、三围尺寸等信息,也可以包括人体各个部位的尺寸,例如可以包括人体头部、手部、腿部等多个部位的尺寸。The electronic device can acquire various information of the human body and establish a first human body model according to the acquired human body information. The first human body model can visually express the characteristics of the human body, and the first human body model is as shown in FIG. 5. The plurality of pieces of information may include information such as height, weight, and size of the human body, and may also include dimensions of various parts of the human body, for example, may include sizes of a plurality of parts such as a human head, a hand, and a leg.
需要说明的是,所述人体信息的信息量多少决定了所述第一人体模型的精细程度。当所述人体信息的信息量较大时,可以使得建立的第一人体模型非常逼真,第一人体模型中每个身体部位的尺寸可以与所述人体的真实尺寸很接近。It should be noted that the amount of information of the human body information determines how fine the first human body model is. When the amount of information of the human body information is large, the established first human body model can be made very realistic, and the size of each body part in the first human body model can be very close to the real size of the human body.
其中,所述人体可以为所述电子设备的用户自身,也可以是用户之外的其他人,例如可以是用户的朋友等。The human body may be the user of the electronic device itself, or may be other than the user, for example, a friend of the user or the like.
120,当检测到启动游戏时,获取所述游戏中的虚拟人物模型。120. Acquire a virtual character model in the game when the startup game is detected.
当电子设备检测到启动游戏时,可以获取所述游戏中的虚拟人物模型。其中,所述游戏可以为安装在电子设备中的游戏。所述游戏可以为角色扮演类、电子竞技类、模拟养成类等多种类型的游戏。When the electronic device detects that the game is started, the virtual character model in the game can be acquired. Wherein, the game may be a game installed in an electronic device. The game can be a variety of types of games such as role-playing, e-sports, and simulation.
所述游戏中包括了虚拟人物模型。所述游戏的一种游戏界面如图1所示。用户在游戏过程中,通过控制所述虚拟人物模型来实现游戏功能。例如,用户可以通过控制所述虚拟人物模型来与其他玩家控制的虚拟人物模型进行对战。The game includes a virtual character model. A game interface of the game is shown in FIG. The user implements the game function by controlling the virtual character model during the game. For example, the user can play against other player-controlled avatar models by controlling the avatar model.
130,根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配。130. The first human body model is reduced or enlarged according to the virtual character model to obtain a second human body model, and the size of the second human body model is adapted to the size of the virtual character model.
其中,所述游戏中的虚拟人物模型具有预设的尺寸。例如,所述虚拟人物模型具有预设的身高、头部大小、腿部长度等。Wherein, the virtual character model in the game has a preset size. For example, the virtual character model has a preset height, head size, leg length, and the like.
可以理解的,由于电子设备的屏幕尺寸限制,游戏中虚拟人物模型的尺寸通常都较小,从而可以在电子设备的屏幕上显示所述虚拟人物模型。例如,所述虚拟人物模型的高度为3cm(厘米)。It can be understood that due to the screen size limitation of the electronic device, the size of the virtual character model in the game is usually small, so that the virtual character model can be displayed on the screen of the electronic device. For example, the virtual character model has a height of 3 cm (cm).
而所述第一人体模型是根据获取到的人体信息来建立的,从而所述第一人体模型的尺寸通常较大。例如,所述第一人体模型的高度为170cm(厘米)。此时,需要对所述第一人体模型进行缩小。And the first human body model is established according to the acquired human body information, so that the size of the first human body model is usually large. For example, the height of the first mannequin is 170 cm (cm). At this time, the first human body model needs to be reduced.
但是在一些情况下,可能由于获取到的人体信息中的数据单位(例如,身高的单位、体重的单位)较大,而导致人体信息中实际的数据很小,此时建立的第一人体模型的尺寸就很小。例如,获取到的人体信息中身高的单位为米,此时获取到的数据可能为1.7m(米),从而建立的第一人体模型就很小。此时,需要对所述第一人体模型进行放大。However, in some cases, the data unit (for example, the unit of height and the unit of weight) in the obtained human body information may be large, and the actual data in the human body information is small, and the first human body model established at this time is established. The size is small. For example, the height of the obtained human body information is in meters, and the data acquired at this time may be 1.7 m (meter), so that the first human body model established is small. At this time, it is necessary to enlarge the first human body model.
电子设备在获取所述游戏中的虚拟人物模型后,可以根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型。其中,电子设备可以获取游戏中的虚拟人物模型的尺寸,并将所述第一人体模型的尺寸与所述虚拟人物模型的尺寸进行比较,以得到所述第一人体模型的尺寸与所述虚拟人物模型的尺寸之间的大小关系。当所述第一人体模型的尺寸大于所述虚拟人物模型的尺寸时,对所述第一人体模型进行缩小;当所述第一人体模型的尺寸小于所述虚拟人物模型的尺寸时,对所述第一人体模型进行放大。After acquiring the virtual character model in the game, the electronic device may reduce or enlarge the first human body model according to the virtual character model to obtain a second human body model. The electronic device may acquire a size of the virtual character model in the game, and compare the size of the first human body model with the size of the virtual character model to obtain the size of the first human body model and the virtual The size relationship between the dimensions of the character model. When the size of the first human body model is larger than the size of the virtual character model, the first human body model is reduced; when the size of the first human body model is smaller than the size of the virtual human model, The first human body model is enlarged.
其中,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配。所述第二人体模型如图6所示。可以理解的,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配即为所述第二人体模型的尺寸与所述虚拟人物模型的尺寸之间的差值在可接受的范围内。Wherein the size of the second human body model is adapted to the size of the virtual character model. The second human body model is shown in FIG. 6. It can be understood that the size of the second human body model is adapted to the size of the virtual character model, that is, the difference between the size of the second human body model and the size of the virtual character model is acceptable. Within the scope.
140,将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。140. Replace the virtual character model in the game with the second human body model.
其中,电子设备得到第二人体模型后,将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。具体地,电子设备先将游戏中的所述虚拟人物模型删除,随后将所述第二人体模型添加至所述游戏中。将所述游戏中的所述虚拟人物模型替换为所述第二人体模型后的游戏界面如图7所示。After the electronic device obtains the second human body model, the virtual character model in the game is replaced with the second human body model. Specifically, the electronic device first deletes the virtual character model in the game, and then adds the second human body model to the game. The game interface after replacing the virtual character model in the game with the second human body model is as shown in FIG. 7.
150,获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。150. Acquire a decorative piece of the virtual character model in the game, and add the decorative piece to the second human body model.
电子设备将游戏中的虚拟人物模型替换为所述第二人体模型后,可以进一步获取所述虚拟人物模型的装饰件。其中,所述装饰件可以为游戏中所述虚拟人物模型穿戴的衣物、 发饰等,也可以为所述虚拟人物模型所使用的物品、道具等。例如,所述装饰件可以为游戏中所述虚拟人物模型所穿着的衣服、手套、手持的武器等物品。随后,电子设备将获取到的装饰件添加到所述第二人体模型上。After the electronic device replaces the virtual character model in the game with the second human body model, the decorative piece of the virtual character model may be further acquired. The decorative piece may be a clothing, a hair accessory, or the like worn by the virtual character model in the game, or may be an item, an item, or the like used by the virtual character model. For example, the decorative piece may be an item such as a garment, a glove, a hand-held weapon, or the like worn by the virtual character model in the game. Subsequently, the electronic device adds the acquired decoration to the second mannequin.
从而,电子设备可以将现实人物的人体模型结合到游戏中,并且可以将游戏中为虚拟人物模型配备的装饰件添加到现实人物的人体模型上,使得所述游戏中的人物模型更逼真,提高游戏的真实性,也可以提高用户游戏时的乐趣。Thereby, the electronic device can integrate the human body model of the real character into the game, and the decorative piece equipped for the virtual character model in the game can be added to the human body model of the real character, so that the character model in the game is more realistic and improved. The authenticity of the game can also improve the fun of the user's game.
在一些实施例中,如图3所示,步骤110、根据获取到的人体信息建立第一人体模型,包括以下步骤:In some embodiments, as shown in FIG. 3, step 110: establishing a first human body model according to the acquired human body information, including the following steps:
111,多次获取人体的全身图像;111, multiple times to obtain a full body image of the human body;
112,分别对每一幅所述全身图像进行识别,以识别出所述人体的多个部位以及每个所述部位的尺寸;112. Identify each of the whole body images separately to identify a plurality of parts of the human body and a size of each of the parts;
113,根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。113. Establish a first human body model according to the plurality of parts and the size of each of the parts.
其中,电子设备可以具有摄像头。电子设备可以通过摄像头多次拍摄人体的照片,从而多次获取人体的全身图像。电子设备每获取一幅人体的全身图像后,可以对所述全身图像进行识别。从而,电子设备可以通过对人体的多幅全身图像的识别,来识别出所述人体的多个部位以及每个所述部位的尺寸。例如,电子设备可以通过对多幅图像的识别,来识别出所述人体的头部高度和宽度、手部的长度和手指的粗细、腰部的尺寸、腿部的长度和直径等尺寸。Wherein, the electronic device can have a camera. The electronic device can take a photo of the human body multiple times through the camera, thereby acquiring the whole body image of the human body multiple times. The electronic device can recognize the whole body image after acquiring a whole body image of the human body. Thereby, the electronic device can recognize the plurality of parts of the human body and the size of each of the parts by recognizing a plurality of whole body images of the human body. For example, the electronic device can recognize the height and width of the head of the human body, the length of the hand and the thickness of the finger, the size of the waist, the length and diameter of the leg, and the like by recognizing the plurality of images.
随后,电子设备根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。所述第一人体模型可以直观、全面的表现出所述人体各个部位的尺寸。Subsequently, the electronic device establishes a first human body model based on the plurality of locations and the size of each of the locations. The first human body model can visually and comprehensively display the size of each part of the human body.
在一些实施例中,如图3所示,步骤130、根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配,包括以下步骤:In some embodiments, as shown in FIG. 3, step 130, reducing or enlarging the first human body model according to the virtual character model to obtain a second human body model, the size and the second human body model The dimensions of the avatar model are adapted to include the following steps:
131,获取所述虚拟人物模型的第一尺寸,所述第一尺寸为所述虚拟人物模型预设部位的尺寸;131. Acquire a first size of the virtual character model, where the first size is a size of a preset part of the virtual character model;
132,根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。132. The first human body model is reduced or enlarged according to the first size to obtain a second human body model, and a size of the preset portion of the second human body model is equal to the first size.
电子设备根据所述虚拟人物模型对所述第一人体模型进行缩小或放大时,可以在所述虚拟人物模型上选择一个参考部位。其中,可以预先设置所述虚拟人物模型的一个部位作为参考部位。例如,可以将所述虚拟人物模型的头部设置为参考部位。可以理解的,也可以将所述虚拟人物模型的全身设置为参考部位。When the electronic device reduces or enlarges the first human body model according to the virtual character model, a reference portion may be selected on the virtual character model. Wherein, one part of the virtual character model may be set in advance as a reference part. For example, the head of the virtual character model can be set as a reference portion. It can be understood that the whole body of the virtual character model can also be set as a reference part.
电子设备可以获取所述虚拟人物模型的第一尺寸。所述第一尺寸为所述虚拟人物模型预设部位的尺寸。其中,所述预设部位即为所述虚拟人物模型上预先设置的参考部位。所述第一尺寸为所述参考部位的一个尺寸。例如,所述参考部位为所述虚拟人物模型的头部,所述第一尺寸可以为所述头部的高度。The electronic device can acquire the first size of the virtual character model. The first size is a size of a preset portion of the virtual character model. The preset part is a reference part preset on the virtual character model. The first size is one size of the reference portion. For example, the reference location is the head of the virtual character model, and the first size may be the height of the head.
随后,电子设备可以根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型。其中,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。例如,所述预设部位为头部,所述第一尺寸为头部的高度,则得到的第二人体模型的头部的高度与所述第一尺寸相等。Subsequently, the electronic device may reduce or enlarge the first human body model according to the first size to obtain a second human body model. The size of the preset portion of the second human body model is equal to the first size. For example, the preset portion is a head, and the first size is a height of the head, and the height of the head of the obtained second human body model is equal to the first size.
在一些实施例中,如图3所示,步骤150、获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上,包括以下步骤:In some embodiments, as shown in FIG. 3, step 150, acquiring a decorative piece of the virtual character model in the game, and adding the decorative piece to the second human body model includes the following steps:
151,获取所述游戏中所述虚拟人物模型多个身体部位的装饰件;151. Acquire a decorative piece of the plurality of body parts of the virtual character model in the game;
152,将所述装饰件添加到所述第二人体模型对应的身体部位上。152. Add the decorative piece to a body part corresponding to the second human body model.
其中,电子设备可以识别游戏中所述虚拟人物模型的多个身体部位,并分别获取所述 多个身体部位的装饰件。例如,电子设备可以识别出所述虚拟人物模型的头部、手部、腰部、腿部等多个部位。随后,分别获取识别出的头部、手部、腰部、腿部等每个部位所佩戴的装饰件。Wherein, the electronic device can identify a plurality of body parts of the virtual character model in the game, and respectively acquire the decorative pieces of the plurality of body parts. For example, the electronic device can recognize a plurality of parts such as a head, a hand, a waist, and a leg of the virtual character model. Subsequently, the decorative pieces worn by each of the identified head, hand, waist, legs, and the like are respectively obtained.
此外,电子设备可以识别所述第二人体模型的多个身体部位,并将获取到的装饰件添加到所述第二人体模型对应的身体部位上。例如,可以将从所述虚拟人物模型的头部获取到的装饰件添加到所述第二人体模型的头部,将从所述虚拟人物模型的手部获取到的装饰件添加到所述第二人体模型的手部,等等。Furthermore, the electronic device can identify a plurality of body parts of the second mannequin and add the acquired decorative pieces to the body part corresponding to the second mannequin. For example, a garnish obtained from a head of the avatar model may be added to a head of the second mannequin, and a garnish acquired from a hand of the avatar model may be added to the Two human models of the hand, and so on.
在一些实施例中,如图4所示,步骤110、根据获取到的人体信息建立第一人体模型之后,还可以包括以下步骤:In some embodiments, as shown in FIG. 4, after the first human body model is established according to the acquired human body information, the following steps may be further included:
161,获取所述人体的性别信息;161. Obtain gender information of the human body;
162,根据所述性别信息获取预设装饰件;162. Acquire a preset decoration according to the gender information;
163,将所述预设装饰件添加至所述第一人体模型。163. Add the preset decoration to the first mannequin.
电子设备根据获取到的人体信息建立第一人体模型之后,可以进一步获取所述人体的性别信息。其中,电子设备可以通过对所述人体的全身图像进行识别或者对所述人体的面部进行识别来获取所述人体的性别信息。此外,电子设备还可以直接接收用户输入的性别信息。After the electronic device establishes the first human body model according to the acquired human body information, the gender information of the human body may be further acquired. The electronic device may acquire gender information of the human body by recognizing a whole body image of the human body or identifying a face of the human body. In addition, the electronic device can directly receive the gender information input by the user.
随后,电子设备根据所述性别信息获取预设装饰件。所述预设装饰件可以为预先设置的装饰物品。例如,对于性别信息为男性,预设装饰件可以为领结、手环、腰部挂饰等装饰件。对于性别信息为女性,预设装饰件可以为帽子、披风、手套等装饰件。Subsequently, the electronic device acquires a preset decoration according to the gender information. The preset decorative piece may be a decorative item set in advance. For example, for the gender information to be male, the preset decorative piece may be a decorative piece such as a bow tie, a bracelet, a waist ornament, or the like. For gender information for women, the preset decorative pieces can be decorative pieces such as hats, cloaks, gloves, and the like.
电子设备根据所述性别信息获取到预设装饰件后,可以将所述预设装饰件添加至所述第一人体模型,以美化所述第一人体模型,使得所述第一人体模型更具美感,也可以提高用户对所述第一人体模型的喜好程度。After the electronic device acquires the preset decoration according to the gender information, the preset decoration may be added to the first human body model to beautify the first human body model, so that the first human body model is more Aesthetics can also increase the user's preference for the first mannequin.
在一些实施例中,如图4所示,步骤150、获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上之后,还包括以下步骤:In some embodiments, as shown in FIG. 4, after step 150, acquiring the decoration piece of the virtual character model in the game, and adding the decoration piece to the second human body model, the following steps are further included. :
171,获取所述游戏中对所述虚拟人物模型的控制指令;171. Acquire a control instruction for the virtual character model in the game.
172,根据所述控制指令控制所述第二人体模型。172. Control the second human body model according to the control instruction.
可以理解的,用户在通过所述游戏进行娱乐时,用户控制游戏中的所述虚拟人物模型来完成游戏功能,例如与其他玩家控制的虚拟人物模型进行对战。用户在控制所述虚拟人物模型时,电子设备根据用户触发的控制指令来控制所述虚拟人物模型。例如,电子设备根据用户触发的移动指令来控制所述虚拟人物模型移动,根据用户触发的攻击指令来控制所述虚拟人物模型进行攻击。It can be understood that when the user entertains through the game, the user controls the virtual character model in the game to complete the game function, for example, playing against other player-controlled virtual character models. When the user controls the virtual character model, the electronic device controls the virtual character model according to a control instruction triggered by the user. For example, the electronic device controls the virtual character model movement according to a movement instruction triggered by the user, and controls the virtual character model to perform an attack according to an attack instruction triggered by the user.
电子设备获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上之后,可以获取所述游戏中对所述虚拟人物模型的控制指令。其中,所述控制指令即为用户在所述电子设备上触发的移动指令、攻击指令等游戏指令。随后,电子设备根据所述控制指令控制所述第二人体模型,以实现用户控制所述第二人体模型进行游戏。从而,可以将真实的用户结合到游戏中,提高游戏的真实性。After the electronic device acquires the decoration of the virtual character model in the game, and adds the decoration to the second human body model, a control instruction for the virtual character model in the game may be acquired. The control command is a game instruction such as a move instruction or an attack command triggered by the user on the electronic device. Subsequently, the electronic device controls the second human body model according to the control instruction to implement a user to control the second human body model to play the game. Thus, real users can be incorporated into the game to improve the authenticity of the game.
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。In the specific implementation, the present application is not limited by the execution order of the various steps described, and some steps may be performed in other orders or simultaneously without conflict.
由上可知,本申请实施例提供的游戏实现方法,包括:根据获取到的人体信息建立第一人体模型;当检测到启动游戏时,获取所述游戏中的虚拟人物模型;根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型;将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。所述游戏实现方法中,可以将现实人物的人体模型结合到游戏中,并且可以将游戏中为虚拟人物模型配备的装饰件添加到现实人物的人体 模型上,使得游戏中的人物模型更逼真,提高游戏的真实性。It can be seen that the game implementation method provided by the embodiment of the present application includes: establishing a first human body model according to the acquired human body information; acquiring a virtual character model in the game when detecting the startup of the game; The model reduces or enlarges the first human body model to obtain a second human body model; replaces the virtual character model in the game with the second human body model; and acquires the virtual character model in the game a decorative piece and adding the decorative piece to the second mannequin. In the game implementation method, a human body model of a real character can be incorporated into the game, and a decorative piece equipped with a virtual character model in the game can be added to the human body model of the real character, so that the character model in the game is more realistic. Improve the authenticity of the game.
本申请实施例还提供一种游戏实现装置,包括:The embodiment of the present application further provides a game implementation apparatus, including:
模型建立模块,用于根据获取到的人体信息建立第一人体模型;a model establishing module, configured to establish a first human body model according to the acquired human body information;
模型调整模块,用于当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;a model adjustment module, configured to reduce or enlarge the first human body model according to a virtual character model in the game to detect a startup game, to obtain a second human body model, and a size of the second human body model The dimensions of the virtual character model are adapted;
替换模块,用于将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;a replacement module, configured to replace the virtual character model in the game with the second human body model;
装饰模块,用于获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。And a decoration module, configured to acquire a decoration piece of the virtual character model in the game, and add the decoration piece to the second human body model.
在一些实施例中,所述装饰模块用于:In some embodiments, the decorating module is for:
获取所述游戏中所述虚拟人物模型多个身体部位的装饰件;Obtaining a decorative piece of the plurality of body parts of the virtual character model in the game;
将所述装饰件添加到所述第二人体模型对应的身体部位上。The decorative piece is added to a body part corresponding to the second human body model.
在一些实施例中,所述游戏实现装置还包括添加模块,所述添加模块用于:In some embodiments, the game implementing apparatus further includes an adding module, the adding module is configured to:
获取所述人体的性别信息;Obtaining gender information of the human body;
根据所述性别信息获取预设装饰件;Obtaining a preset decoration according to the gender information;
将所述预设装饰件添加至所述第一人体模型。The preset trim is added to the first mannequin.
在一些实施例中,所述模型调整模块包括:In some embodiments, the model adjustment module comprises:
第一获取子模块,用于当检测到启动游戏时,获取所述游戏中的虚拟人物模型的第一尺寸,所述第一尺寸为所述虚拟人物模型预设部位的尺寸;a first acquiring submodule, configured to acquire a first size of the virtual character model in the game when the game is started, where the first size is a size of the preset part of the virtual character model;
调整子模块,用于根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。Adjusting a sub-module for reducing or enlarging the first human body model according to the first size to obtain a second human body model, the size of the preset portion of the second human body model and the first The dimensions are equal.
在一些实施例中,所述模型调整模块用于:In some embodiments, the model adjustment module is used to:
当检测到启动游戏时,获取所述游戏中的虚拟人物模型的尺寸;Obtaining a size of the virtual character model in the game when the game is started is detected;
将所述第一人体模型的尺寸与所述虚拟人物模型的尺寸进行比较,以得到所述第一人体模型的尺寸与所述虚拟人物模型的尺寸之间的大小关系;Comparing a size of the first human body model with a size of the virtual character model to obtain a size relationship between a size of the first human body model and a size of the virtual character model;
当所述第一人体模型的尺寸大于所述虚拟人物模型的尺寸时,对所述第一人体模型进行缩小;When the size of the first human body model is larger than the size of the virtual character model, the first human body model is reduced;
当所述第一人体模型的尺寸小于所述虚拟人物模型的尺寸时,对所述第一人体模型进行放大。The first human body model is enlarged when the size of the first human body model is smaller than the size of the virtual human model.
在一些实施例中,所述模型建立模块包括:In some embodiments, the model building module includes:
第二获取子模块,用于多次获取人体的全身图像;a second acquisition sub-module for acquiring a whole body image of the human body multiple times;
识别子模块,用于分别对每一幅所述全身图像进行识别,以识别出所述人体的多个部位以及每个所述部位的尺寸;Identifying a sub-module for respectively identifying each of the whole body images to identify a plurality of parts of the human body and a size of each of the parts;
模型建立子模块,用于根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。The model establishing submodule is configured to establish a first human body model according to the plurality of parts and the size of each of the parts.
在一些实施例中,所述游戏实现装置还包括控制模块,所述控制模块用于:In some embodiments, the game implementing device further includes a control module, the control module is configured to:
获取所述游戏中对所述虚拟人物模型的控制指令;Obtaining a control instruction for the virtual character model in the game;
根据所述控制指令控制所述第二人体模型。The second human body model is controlled according to the control instruction.
本申请实施例还提供一种游戏实现装置,所述游戏实现装置可以集成在电子设备中,所述电子设备可以是智能手机、平板电脑等设备。The embodiment of the present application further provides a game implementation device, which may be integrated into an electronic device, and the electronic device may be a device such as a smart phone or a tablet computer.
如图8所示,游戏实现装置200可以包括:模型建立模块201、获取模块202、模型调整模块203、替换模块204以及装饰模块205。As shown in FIG. 8 , the game implementation apparatus 200 may include: a model creation module 201 , an acquisition module 202 , a model adjustment module 203 , a replacement module 204 , and a decoration module 205 .
模型建立模块201,用于根据获取到的人体信息建立第一人体模型。The model establishing module 201 is configured to establish a first human body model according to the acquired human body information.
其中,所述模型建立模块201可以获取人体的多种信息,并根据获取到的人体信息建立第一人体模型。所述第一人体模型可以直观地表现出人体的特征。所述多种信息可以包 括人体的身高、体重、三围尺寸等信息,也可以包括人体各个部位的尺寸,例如可以包括人体头部、手部、腿部等多个部位的尺寸。The model establishing module 201 can acquire various information of the human body, and establish a first human body model according to the acquired human body information. The first human body model can visually express the characteristics of the human body. The plurality of pieces of information may include information such as height, weight, and size of the human body, and may also include dimensions of various parts of the human body, for example, may include sizes of a plurality of parts such as a human head, a hand, and a leg.
需要说明的是,所述人体信息的信息量多少决定了所述第一人体模型的精细程度。当所述人体信息的信息量较大时,可以使得建立的第一人体模型非常逼真,第一人体模型中每个身体部位的尺寸可以与所述人体的真实尺寸很接近。It should be noted that the amount of information of the human body information determines how fine the first human body model is. When the amount of information of the human body information is large, the established first human body model can be made very realistic, and the size of each body part in the first human body model can be very close to the real size of the human body.
其中,所述人体可以为电子设备的用户自身,也可以是用户之外的其他人,例如可以是用户的朋友等。The human body may be the user of the electronic device itself, or may be other than the user, for example, a friend of the user.
获取模块202,用于当检测到启动游戏时,获取所述游戏中的虚拟人物模型。The obtaining module 202 is configured to acquire a virtual character model in the game when the startup game is detected.
当检测到启动游戏时,获取模块202可以获取所述游戏中的虚拟人物模型。其中,所述游戏可以为安装在电子设备中的游戏。所述游戏可以为角色扮演类、电子竞技类、模拟养成类等多种类型的游戏。When a startup game is detected, the acquisition module 202 can acquire a virtual character model in the game. Wherein, the game may be a game installed in an electronic device. The game can be a variety of types of games such as role-playing, e-sports, and simulation.
所述游戏中包括了虚拟人物模型。用户在游戏过程中,通过控制所述虚拟人物模型来实现游戏功能。例如,用户可以通过控制所述虚拟人物模型来与其他玩家控制的虚拟人物模型进行对战。The game includes a virtual character model. The user implements the game function by controlling the virtual character model during the game. For example, the user can play against other player-controlled avatar models by controlling the avatar model.
模型调整模块203,用于根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配。The model adjustment module 203 is configured to reduce or enlarge the first human body model according to the virtual character model to obtain a second human body model, and the size of the second human body model is compatible with the size of the virtual human model Match.
其中,所述游戏中的虚拟人物模型具有预设的尺寸。例如,所述虚拟人物模型具有预设的身高、头部大小、腿部长度等。Wherein, the virtual character model in the game has a preset size. For example, the virtual character model has a preset height, head size, leg length, and the like.
可以理解的,由于电子设备的屏幕尺寸限制,游戏中虚拟人物模型的尺寸通常都较小,从而可以在电子设备的屏幕上显示所述虚拟人物模型。例如,所述虚拟人物模型的高度为3cm(厘米)。It can be understood that due to the screen size limitation of the electronic device, the size of the virtual character model in the game is usually small, so that the virtual character model can be displayed on the screen of the electronic device. For example, the virtual character model has a height of 3 cm (cm).
而所述第一人体模型是根据获取到的人体信息来建立的,从而所述第一人体模型的尺寸通常较大。例如,所述第一人体模型的高度为170cm(厘米)。此时,需要对所述第一人体模型进行缩小。And the first human body model is established according to the acquired human body information, so that the size of the first human body model is usually large. For example, the height of the first mannequin is 170 cm (cm). At this time, the first human body model needs to be reduced.
但是在一些情况下,可能由于获取到的人体信息中的数据单位(例如,身高的单位、体重的单位)较大,而导致人体信息中实际的数据很小,此时建立的第一人体模型的尺寸就很小。例如,获取到的人体信息中身高的单位为米,此时获取到的数据可能为1.7m(米),从而建立的第一人体模型就很小。此时,需要对所述第一人体模型进行放大。However, in some cases, the data unit (for example, the unit of height and the unit of weight) in the obtained human body information may be large, and the actual data in the human body information is small, and the first human body model established at this time is established. The size is small. For example, the height of the obtained human body information is in meters, and the data acquired at this time may be 1.7 m (meter), so that the first human body model established is small. At this time, it is necessary to enlarge the first human body model.
获取模块202在获取所述游戏中的虚拟人物模型后,模型调整模块203可以根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型。其中,模型调整模块203可以获取游戏中的虚拟人物模型的尺寸,并将所述第一人体模型的尺寸与所述虚拟人物模型的尺寸进行比较,以得到所述第一人体模型的尺寸与所述虚拟人物模型的尺寸之间的大小关系。当所述第一人体模型的尺寸大于所述虚拟人物模型的尺寸时,对所述第一人体模型进行缩小;当所述第一人体模型的尺寸小于所述虚拟人物模型的尺寸时,对所述第一人体模型进行放大。After acquiring the virtual character model in the game, the model adjustment module 203 may reduce or enlarge the first human body model according to the virtual character model to obtain a second human body model. The model adjustment module 203 may acquire the size of the virtual character model in the game, and compare the size of the first human body model with the size of the virtual character model to obtain the size and location of the first human body model. The size relationship between the dimensions of the avatar model. When the size of the first human body model is larger than the size of the virtual character model, the first human body model is reduced; when the size of the first human body model is smaller than the size of the virtual human model, The first human body model is enlarged.
其中,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配。可以理解的,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配即为所述第二人体模型的尺寸与所述虚拟人物模型的尺寸之间的差值在可接受的范围内。Wherein the size of the second human body model is adapted to the size of the virtual character model. It can be understood that the size of the second human body model is adapted to the size of the virtual character model, that is, the difference between the size of the second human body model and the size of the virtual character model is acceptable. Within the scope.
替换模块204,用于将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。The replacement module 204 is configured to replace the virtual character model in the game with the second human body model.
其中,模型调整模块203得到第二人体模型后,替换模块204将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。具体地,替换模块204先将游戏中的所述虚拟人物模型删除,随后将所述第二人体模型添加至所述游戏中。After the model adjustment module 203 obtains the second human body model, the replacement module 204 replaces the virtual character model in the game with the second human body model. Specifically, the replacement module 204 first deletes the virtual character model in the game, and then adds the second human body model to the game.
从而,可以将现实人物的人体模型结合到游戏中,使得所述游戏中的人物模型更逼真,提高游戏的真实性,也可以提高用户游戏时的乐趣。Thereby, the human body model of the real person can be incorporated into the game, so that the character model in the game is more realistic, the authenticity of the game is improved, and the fun of the user's game can be improved.
装饰模块205,用于获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。The decoration module 205 is configured to acquire a decoration piece of the virtual character model in the game, and add the decoration piece to the second human body model.
替换模块204将游戏中的虚拟人物模型替换为所述第二人体模型后,装饰模块205可以进一步获取所述虚拟人物模型的装饰件。其中,所述装饰件可以为游戏中所述虚拟人物模型穿戴的衣物、发饰等,也可以为所述虚拟人物模型所使用的物品、道具等。例如,所述装饰件可以为游戏中所述虚拟人物模型所穿着的衣服、手套、手持的武器等物品。随后,装饰模块205将获取到的装饰件添加到所述第二人体模型上。After the replacement module 204 replaces the virtual character model in the game with the second human body model, the decoration module 205 may further acquire the decoration of the virtual character model. The decorative piece may be a clothing, a hair accessory, or the like worn by the virtual character model in the game, or may be an item, an item, or the like used in the virtual character model. For example, the decorative piece may be an item such as a garment, a glove, a hand-held weapon, or the like worn by the virtual character model in the game. Subsequently, the decoration module 205 adds the acquired decoration to the second mannequin.
在一些实施例中,如图9所示,模型建立模块201包括:第二获取子模块2011、识别子模块2012、模型建立子模块2013。In some embodiments, as shown in FIG. 9, the model building module 201 includes: a second obtaining sub-module 2011, an identifying sub-module 2012, and a model building sub-module 2013.
第二获取子模块2011,用于多次获取人体的全身图像;a second obtaining sub-module 2011, configured to acquire a whole body image of the human body multiple times;
识别子模块2012,用于分别对每一幅所述全身图像进行识别,以识别出所述人体的多个部位以及每个所述部位的尺寸;The identification sub-module 2012 is configured to respectively identify each of the whole body images to identify a plurality of parts of the human body and a size of each of the parts;
模型建立子模块2013,用于根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。The model building sub-module 2013 is configured to establish a first human body model according to the plurality of parts and the size of each of the parts.
其中,电子设备可以具有摄像头。第二获取子模块2011可以通过摄像头多次拍摄人体的照片,从而多次获取人体的全身图像。每获取一幅人体的全身图像后,识别子模块2012可以对所述全身图像进行识别。从而,识别子模块2012可以通过对人体的多幅全身图像的识别,来识别出所述人体的多个部位以及每个所述部位的尺寸。例如,识别子模块2012可以通过对多幅图像的识别,来识别出所述人体的头部高度和宽度、手部的长度和手指的粗细、腰部的尺寸、腿部的长度和直径等尺寸。Wherein, the electronic device can have a camera. The second acquisition sub-module 2011 can take a photo of the human body multiple times through the camera, thereby acquiring the whole body image of the human body multiple times. Each time a full body image of the human body is acquired, the recognition sub-module 2012 can identify the whole body image. Thus, the recognition sub-module 2012 can identify the plurality of parts of the human body and the size of each of the parts by recognizing a plurality of whole body images of the human body. For example, the recognition sub-module 2012 can identify the height and width of the head of the human body, the length of the hand and the thickness of the finger, the size of the waist, the length and diameter of the leg, and the like by recognizing the plurality of images.
随后,模型建立子模块2013根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。所述第一人体模型可以直观、全面的表现出所述人体各个部位的尺寸。Subsequently, the model building sub-module 2013 establishes a first human body model based on the plurality of locations and the size of each of the locations. The first human body model can visually and comprehensively display the size of each part of the human body.
在一些实施例中,如图10所示,模型调整模块203包括:第一获取子模块2031、调整子模块2032。In some embodiments, as shown in FIG. 10, the model adjustment module 203 includes: a first acquisition sub-module 2031 and an adjustment sub-module 2032.
第一获取子模块2031,用于获取所述虚拟人物模型的第一尺寸,所述第一尺寸为所述虚拟人物模型预设部位的尺寸;a first acquiring sub-module 2031, configured to acquire a first size of the virtual character model, where the first size is a size of a preset part of the virtual character model;
调整子模块2032,用于根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。The adjustment sub-module 2032 is configured to reduce or enlarge the first human body model according to the first size to obtain a second human body model, and the size of the preset portion of the second human body model and the first One size is equal.
根据所述虚拟人物模型对所述第一人体模型进行缩小或放大时,可以在所述虚拟人物模型上选择一个参考部位。其中,可以预先设置所述虚拟人物模型的一个部位作为参考部位。例如,可以将所述虚拟人物模型的头部设置为参考部位。可以理解的,也可以将所述虚拟人物模型的全身设置为参考部位。When the first human body model is reduced or enlarged according to the virtual character model, a reference portion may be selected on the virtual character model. Wherein, one part of the virtual character model may be set in advance as a reference part. For example, the head of the virtual character model can be set as a reference portion. It can be understood that the whole body of the virtual character model can also be set as a reference part.
第一获取子模块2031可以获取所述虚拟人物模型的第一尺寸。所述第一尺寸为所述虚拟人物模型预设部位的尺寸。其中,所述预设部位即为所述虚拟人物模型上预先设置的参考部位。所述第一尺寸为所述参考部位的一个尺寸。例如,所述参考部位为所述虚拟人物模型的头部,所述第一尺寸可以为所述头部的高度。The first obtaining submodule 2031 may acquire the first size of the virtual character model. The first size is a size of a preset portion of the virtual character model. The preset part is a reference part preset on the virtual character model. The first size is one size of the reference portion. For example, the reference location is the head of the virtual character model, and the first size may be the height of the head.
随后,调整子模块2032可以根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型。其中,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。例如,所述预设部位为头部,所述第一尺寸为头部的高度,则得到的第二人体模型的头部的高度与所述第一尺寸相等。Subsequently, the adjustment sub-module 2032 may reduce or enlarge the first human body model according to the first size to obtain a second human body model. The size of the preset portion of the second human body model is equal to the first size. For example, the preset portion is a head, and the first size is a height of the head, and the height of the head of the obtained second human body model is equal to the first size.
在一些实施例中,装饰模块205用于执行以下步骤:In some embodiments, the decoration module 205 is configured to perform the following steps:
获取所述游戏中所述虚拟人物模型多个身体部位的装饰件;Obtaining a decorative piece of the plurality of body parts of the virtual character model in the game;
将所述装饰件添加到所述第二人体模型对应的身体部位上。The decorative piece is added to a body part corresponding to the second human body model.
其中,装饰模块205可以识别游戏中所述虚拟人物模型的多个身体部位,并分别获取 所述多个身体部位的装饰件。例如,装饰模块205可以识别出所述虚拟人物模型的头部、手部、腰部、腿部等多个部位。随后,分别获取识别出的头部、手部、腰部、腿部等每个部位所佩戴的装饰件。The decoration module 205 can identify a plurality of body parts of the virtual character model in the game, and respectively acquire the decorative pieces of the plurality of body parts. For example, the decoration module 205 can recognize a plurality of parts such as a head, a hand, a waist, a leg, and the like of the virtual character model. Subsequently, the decorative pieces worn by each of the identified head, hand, waist, legs, and the like are respectively obtained.
此外,装饰模块205可以识别所述第二人体模型的多个身体部位,并将获取到的装饰件添加到所述第二人体模型对应的身体部位上。例如,可以将从所述虚拟人物模型的头部获取到的装饰件添加到所述第二人体模型的头部,将从所述虚拟人物模型的手部获取到的装饰件添加到所述第二人体模型的手部,等等。In addition, the decoration module 205 can identify a plurality of body parts of the second mannequin and add the acquired decoration to the body part corresponding to the second mannequin. For example, a garnish obtained from a head of the avatar model may be added to a head of the second mannequin, and a garnish acquired from a hand of the avatar model may be added to the Two human models of the hand, and so on.
在一些实施例中,如图11所示,游戏实现装置200还包括添加模块206。所述添加模块206用于执行以下步骤:In some embodiments, as shown in FIG. 11, the game implementation device 200 also includes an add module 206. The adding module 206 is configured to perform the following steps:
获取所述人体的性别信息;Obtaining gender information of the human body;
根据所述性别信息获取预设装饰件;Obtaining a preset decoration according to the gender information;
将所述装饰件添加至所述第一人体模型。The trim piece is added to the first mannequin.
模型建立模块201根据获取到的人体信息建立第一人体模型之后,添加模块206可以进一步获取所述人体的性别信息。其中,添加模块206可以通过对所述人体的全身图像进行识别或者对所述人体的面部进行识别来获取所述人体的性别信息。此外,添加模块206还可以直接接收用户输入的性别信息。After the model establishing module 201 establishes the first human body model according to the acquired human body information, the adding module 206 may further acquire the gender information of the human body. The adding module 206 may acquire gender information of the human body by identifying a whole body image of the human body or identifying a face of the human body. In addition, the adding module 206 can also directly receive the gender information input by the user.
随后,添加模块206根据所述性别信息获取预设装饰件。所述预设装饰件可以为预先设置的装饰物品。例如,对于性别信息为男性,预设装饰件可以为领结、手环、腰部挂饰等装饰件。对于性别信息为女性,预设装饰件可以为帽子、披风、手套等装饰件。Subsequently, the adding module 206 acquires a preset decoration according to the gender information. The preset decorative piece may be a decorative item set in advance. For example, for the gender information to be male, the preset decorative piece may be a decorative piece such as a bow tie, a bracelet, a waist ornament, or the like. For gender information for women, the preset decorative pieces can be decorative pieces such as hats, cloaks, gloves, and the like.
添加模块206根据所述性别信息获取到预设装饰件后,可以将所述预设装饰件添加至所述第一人体模型,以美化所述第一人体模型,使得所述第一人体模型更具美感,也可以提高用户对所述第一人体模型的喜好程度。After the adding module 206 obtains the preset decoration according to the gender information, the preset decoration may be added to the first human body model to beautify the first human body model, so that the first human body model is further Aesthetically, the user's preference for the first mannequin can also be improved.
在一些实施例中,如图12所示,游戏实现装置200还包括控制模块207。所述控制模块207用于执行以下步骤:In some embodiments, as shown in FIG. 12, the game implementation device 200 also includes a control module 207. The control module 207 is configured to perform the following steps:
获取所述游戏中对所述虚拟人物模型的控制指令;Obtaining a control instruction for the virtual character model in the game;
根据所述控制指令控制所述第二人体模型。The second human body model is controlled according to the control instruction.
可以理解的,用户在通过所述游戏进行娱乐时,用户控制游戏中的所述虚拟人物模型来完成游戏功能,例如与其他玩家控制的虚拟人物模型进行对战。用户在控制所述虚拟人物模型时,电子设备根据用户触发的控制指令来控制所述虚拟人物模型。例如,电子设备根据用户触发的移动指令来控制所述虚拟人物模型移动,根据用户触发的攻击指令来控制所述虚拟人物模型进行攻击。It can be understood that when the user entertains through the game, the user controls the virtual character model in the game to complete the game function, for example, playing against other player-controlled virtual character models. When the user controls the virtual character model, the electronic device controls the virtual character model according to a control instruction triggered by the user. For example, the electronic device controls the virtual character model movement according to a movement instruction triggered by the user, and controls the virtual character model to perform an attack according to an attack instruction triggered by the user.
装饰模块205获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型之后,控制模块207可以获取所述游戏中对所述虚拟人物模型的控制指令。其中,所述控制指令即为用户在所述电子设备上触发的移动指令、攻击指令等游戏指令。随后,控制模块207根据所述控制指令控制所述第二人体模型,以实现用户控制所述第二人体模型进行游戏。从而,可以将真实的用户结合到游戏中,提高游戏的真实性。After the decoration module 205 acquires the decoration of the virtual character model in the game, and adds the decoration to the second human body model, the control module 207 may acquire the control of the virtual character model in the game. instruction. The control command is a game instruction such as a move instruction or an attack command triggered by the user on the electronic device. Subsequently, the control module 207 controls the second human body model according to the control instruction to implement a user to control the second human body model to play the game. Thus, real users can be incorporated into the game to improve the authenticity of the game.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现。In the specific implementation, each of the above modules may be implemented as a separate entity, or may be implemented in any combination as one or several entities.
由上可知,本申请实施例提供的游戏实现装置200,通过模型建立模块201根据获取到的人体信息建立第一人体模型;获取模块202当检测到启动游戏时,获取所述游戏中的虚拟人物模型;模型调整模块203根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型;替换模块204将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;装饰模块205获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。所述游戏实现装置可以将现实人物的人体模型结合到游戏中,并且可 以将游戏中为虚拟人物模型配备的装饰件添加到现实人物的人体模型上,使得游戏中的人物模型更逼真,提高游戏的真实性。It can be seen that the game implementation device 200 provided by the embodiment of the present application establishes a first human body model according to the acquired human body information by the model establishing module 201. The acquisition module 202 acquires the virtual human character in the game when detecting the startup of the game. a model; the model adjustment module 203 reduces or enlarges the first human body model according to the virtual character model to obtain a second human body model; and the replacement module 204 replaces the virtual character model in the game with the first a human body model; the decoration module 205 acquires a decorative piece of the virtual character model in the game, and adds the decorative piece to the second human body model. The game implementing device can integrate the human body model of the real character into the game, and can add the decorative piece equipped in the game for the virtual character model to the human body model of the real character, so that the character model in the game is more realistic and the game is improved. Authenticity.
本申请实施例还提供一种电子设备。所述电子设备可以是智能手机、平板电脑等设备。如图13所示,电子设备300包括处理器301和存储器302。其中,处理器301与存储器302电性连接。An embodiment of the present application further provides an electronic device. The electronic device may be a device such as a smart phone or a tablet computer. As shown in FIG. 13, the electronic device 300 includes a processor 301 and a memory 302. The processor 301 is electrically connected to the memory 302.
处理器301是电子设备300的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或调用存储在存储器302内的计算机程序,以及调用存储在存储器302内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 301 is a control center of the electronic device 300, and connects various parts of the entire electronic device using various interfaces and lines, and executes the electronic by running or calling a computer program stored in the memory 302 and calling data stored in the memory 302. The various functions and processing data of the device enable overall monitoring of the electronic device.
在本实施例中,电子设备300中的处理器301会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器302中,并由处理器301来运行存储在存储器302中的计算机程序,用于执行以下步骤:In this embodiment, the processor 301 in the electronic device 300 loads the instructions corresponding to the processes of one or more computer programs into the memory 302 according to the following steps, and is executed by the processor 301 to be stored in the memory 302. Computer program in which to perform the following steps:
根据获取到的人体信息建立第一人体模型;Establishing a first human body model according to the acquired human body information;
当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;Substituting the virtual character model in the game with the second human body model;
获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。Acquiring a decorative piece of the virtual character model in the game, and adding the decorative piece to the second mannequin.
在一些实施例中,获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上时,处理器301执行以下步骤:In some embodiments, when the decoration of the virtual character model in the game is acquired and the decoration is added to the second human body model, the processor 301 performs the following steps:
获取所述游戏中所述虚拟人物模型多个身体部位的装饰件;Obtaining a decorative piece of the plurality of body parts of the virtual character model in the game;
将所述装饰件添加到所述第二人体模型对应的身体部位上。The decorative piece is added to a body part corresponding to the second human body model.
在一些实施例中,根据获取到的人体信息建立第一人体模型之后,所述处理器301还用于执行以下步骤:In some embodiments, after the first human body model is established according to the acquired human body information, the processor 301 is further configured to perform the following steps:
获取所述人体的性别信息;Obtaining gender information of the human body;
根据所述性别信息获取预设装饰件;Obtaining a preset decoration according to the gender information;
将所述预设装饰件添加至所述第一人体模型。The preset trim is added to the first mannequin.
在一些实施例中,当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型时,处理器301执行以下步骤:In some embodiments, when the startup game is detected, the first human body model is reduced or enlarged according to the virtual character model in the game to obtain the second human body model, and the processor 301 performs the following steps:
当检测到启动游戏时,获取所述游戏中所述虚拟人物模型的第一尺寸,所述第一尺寸为所述虚拟人物模型预设部位的尺寸;Obtaining, when the game is started, a first size of the virtual character model in the game, the first size being a size of a preset part of the virtual character model;
根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。And reducing or enlarging the first human body model according to the first size to obtain a second human body model, wherein a size of the preset portion of the second human body model is equal to the first size.
在一些实施例中,当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型时,所述处理器301用于执行以下步骤:In some embodiments, when detecting the start of the game, the first human body model is reduced or enlarged according to the virtual character model in the game to obtain the second human body model, the processor 301 is configured to execute The following steps:
当检测到启动游戏时,获取所述游戏中的虚拟人物模型的尺寸;Obtaining a size of the virtual character model in the game when the game is started is detected;
将所述第一人体模型的尺寸与所述虚拟人物模型的尺寸进行比较,以得到所述第一人体模型的尺寸与所述虚拟人物模型的尺寸之间的大小关系;Comparing a size of the first human body model with a size of the virtual character model to obtain a size relationship between a size of the first human body model and a size of the virtual character model;
当所述第一人体模型的尺寸大于所述虚拟人物模型的尺寸时,对所述第一人体模型进行缩小;When the size of the first human body model is larger than the size of the virtual character model, the first human body model is reduced;
当所述第一人体模型的尺寸小于所述虚拟人物模型的尺寸时,对所述第一人体模型进行放大。The first human body model is enlarged when the size of the first human body model is smaller than the size of the virtual human model.
在一些实施例中,根据获取到的人体信息建立第一人体模型时,处理器301执行以下步骤:In some embodiments, when the first human body model is established according to the acquired human body information, the processor 301 performs the following steps:
多次获取人体的全身图像;Obtaining a full-body image of the human body several times;
分别对每一幅所述全身图像进行识别,以识别出所述人体的多个部位以及每个所述部位的尺寸;Identifying each of the whole body images separately to identify a plurality of parts of the human body and a size of each of the parts;
根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。A first human body model is established based on the plurality of locations and the size of each of the locations.
在一些实施例中,获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上之后,处理器301还执行以下步骤:In some embodiments, after acquiring the decoration of the virtual character model in the game and adding the decoration to the second mannequin, the processor 301 further performs the following steps:
获取所述游戏中对所述虚拟人物模型的控制指令;Obtaining a control instruction for the virtual character model in the game;
根据所述控制指令控制所述第二人体模型。The second human body model is controlled according to the control instruction.
存储器302可用于存储计算机程序和数据。存储器302存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器301通过调用存储在存储器302的计算机程序,从而执行各种功能应用以及数据处理。 Memory 302 can be used to store computer programs and data. The computer program stored in the memory 302 contains instructions executable in the processor. Computer programs can be combined into various functional modules. The processor 301 executes various functional applications and data processing by calling a computer program stored in the memory 302.
在一些实施例中,如图14所示,电子设备300还包括:射频电路303、显示屏304、控制电路305、输入单元306、音频电路307、传感器308以及电源309。其中,处理器301分别与射频电路303、显示屏304、控制电路305、输入单元306、音频电路307、传感器308以及电源309电性连接。In some embodiments, as shown in FIG. 14, the electronic device 300 further includes a radio frequency circuit 303, a display screen 304, a control circuit 305, an input unit 306, an audio circuit 307, a sensor 308, and a power source 309. The processor 301 is electrically connected to the radio frequency circuit 303, the display screen 304, the control circuit 305, the input unit 306, the audio circuit 307, the sensor 308, and the power source 309, respectively.
射频电路303用于收发射频信号,以通过无线通信与网络设备或其他电子设备进行通信。The radio frequency circuit 303 is configured to transceive radio frequency signals to communicate with network devices or other electronic devices through wireless communication.
显示屏304可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 304 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be composed of images, text, icons, video, and any combination thereof.
控制电路305与显示屏304电性连接,用于控制显示屏304显示信息。The control circuit 305 is electrically connected to the display screen 304 for controlling the display screen 304 to display information.
输入单元306可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元306可以包括指纹识别模组。The input unit 306 can be configured to receive input digits, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls. The input unit 306 can include a fingerprint identification module.
音频电路307可通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 307 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
传感器308用于采集外部环境信息。传感器308可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。 Sensor 308 is used to collect external environmental information. Sensor 308 can include one or more of ambient brightness sensors, acceleration sensors, gyroscopes, and the like.
电源309用于给电子设备300的各个部件供电。在一些实施例中,电源309可以通过电源管理系统与处理器301逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。 Power source 309 is used to power various components of electronic device 300. In some embodiments, the power source 309 can be logically coupled to the processor 301 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
尽管图14中未示出,电子设备300还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 14, the electronic device 300 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
由上可知,本申请实施例提供了一种电子设备,所述电子设备执行以下步骤:根据获取到的人体信息建立第一人体模型;当检测到启动游戏时,获取所述游戏中的虚拟人物模型;根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型;将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。所述电子设备可以将现实人物的人体模型结合到游戏中,并且可以将游戏中为虚拟人物模型配备的装饰件添加到现实人物的人体模型上,使得游戏中的人物模型更逼真,提高游戏的真实性。As can be seen from the above, an embodiment of the present application provides an electronic device, where the electronic device performs the following steps: establishing a first human body model according to the acquired human body information; and acquiring a virtual character in the game when detecting the startup of the game a model; reducing or enlarging the first human body model according to the virtual character model to obtain a second human body model; replacing the virtual character model in the game with the second human body model; acquiring the A decorative piece of the virtual character model in the game, and adding the decorative piece to the second mannequin. The electronic device can integrate the human body model of the real character into the game, and can add the decorative piece equipped in the game for the virtual character model to the human body model of the real character, so that the character model in the game is more realistic and improves the game. Authenticity.
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,所述计算机执行上述任一实施例所述的游戏实现方法。The embodiment of the present application further provides a storage medium, where the computer program stores a computer program, and when the computer program runs on a computer, the computer executes the game implementation method described in any of the above embodiments.
例如,在一些实施例中,当所述计算机程序在计算机上运行时,所述计算机执行以下步骤:For example, in some embodiments, when the computer program is run on a computer, the computer performs the following steps:
根据获取到的人体信息建立第一人体模型;Establishing a first human body model according to the acquired human body information;
当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适 配;When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;Substituting the virtual character model in the game with the second human body model;
获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。Acquiring a decorative piece of the virtual character model in the game, and adding the decorative piece to the second mannequin.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机程序来指令相关的硬件来完成,所述计算机程序可以存储于计算机可读存储介质中,所述存储介质可以包括但不限于:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a computer program to instruct related hardware, and the computer program can be stored in a computer readable storage medium. The storage medium may include, but is not limited to, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
以上对本申请实施例所提供的游戏实现方法、装置、存储介质及电子设备进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The game implementation method, device, storage medium and electronic device provided by the embodiments of the present application are described in detail above. The principles and implementations of the present application are described in the following by using specific examples. The description of the above embodiments is only for helping to understand the method of the present application and its core ideas. Meanwhile, for those skilled in the art, according to the present application, There is a change in the scope of the present invention and the scope of application, and the contents of this specification should not be construed as limiting the present application.

Claims (20)

  1. 一种游戏实现方法,包括:A game implementation method, including:
    根据获取到的人体信息建立第一人体模型;Establishing a first human body model according to the acquired human body information;
    当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
    将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;Substituting the virtual character model in the game with the second human body model;
    获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。Acquiring a decorative piece of the virtual character model in the game, and adding the decorative piece to the second mannequin.
  2. 根据权利要求1所述的游戏实现方法,其中,所述获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上,包括:The game implementing method according to claim 1, wherein the acquiring the decorative piece of the virtual character model in the game and adding the decorative piece to the second human body model comprises:
    获取所述游戏中所述虚拟人物模型多个身体部位的装饰件;Obtaining a decorative piece of the plurality of body parts of the virtual character model in the game;
    将所述装饰件添加到所述第二人体模型对应的身体部位上。The decorative piece is added to a body part corresponding to the second human body model.
  3. 根据权利要求1所述的游戏实现方法,其中,所述根据获取到的人体信息建立第一人体模型之后,还包括:The game implementation method according to claim 1, wherein after the first human body model is established according to the acquired human body information, the method further includes:
    获取所述人体的性别信息;Obtaining gender information of the human body;
    根据所述性别信息获取预设装饰件;Obtaining a preset decoration according to the gender information;
    将所述预设装饰件添加至所述第一人体模型。The preset trim is added to the first mannequin.
  4. 根据权利要求1所述的游戏实现方法,其中,所述当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,包括:The game implementation method according to claim 1, wherein when the game is started, the first human body model is reduced or enlarged according to a virtual character model in the game to obtain a second human body model, include:
    当检测到启动游戏时,获取所述游戏中所述虚拟人物模型的第一尺寸,所述第一尺寸为所述虚拟人物模型预设部位的尺寸;Obtaining, when the game is started, a first size of the virtual character model in the game, the first size being a size of a preset part of the virtual character model;
    根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。And reducing or enlarging the first human body model according to the first size to obtain a second human body model, wherein a size of the preset portion of the second human body model is equal to the first size.
  5. 根据权利要求1所述的游戏实现方法,其中,所述当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,包括:The game implementation method according to claim 1, wherein when the game is started, the first human body model is reduced or enlarged according to a virtual character model in the game to obtain a second human body model, include:
    当检测到启动游戏时,获取所述游戏中的虚拟人物模型的尺寸;Obtaining a size of the virtual character model in the game when the game is started is detected;
    将所述第一人体模型的尺寸与所述虚拟人物模型的尺寸进行比较,以得到所述第一人体模型的尺寸与所述虚拟人物模型的尺寸之间的大小关系;Comparing a size of the first human body model with a size of the virtual character model to obtain a size relationship between a size of the first human body model and a size of the virtual character model;
    当所述第一人体模型的尺寸大于所述虚拟人物模型的尺寸时,对所述第一人体模型进行缩小;When the size of the first human body model is larger than the size of the virtual character model, the first human body model is reduced;
    当所述第一人体模型的尺寸小于所述虚拟人物模型的尺寸时,对所述第一人体模型进行放大。The first human body model is enlarged when the size of the first human body model is smaller than the size of the virtual human model.
  6. 根据权利要求1所述的游戏实现方法,其中,所述根据获取到的人体信息建立第一人体模型的步骤包括:The game implementation method according to claim 1, wherein the step of establishing the first human body model according to the acquired human body information comprises:
    多次获取人体的全身图像;Obtaining a full-body image of the human body several times;
    分别对每一幅所述全身图像进行识别,以识别出所述人体的多个部位以及每个所述部位的尺寸;Identifying each of the whole body images separately to identify a plurality of parts of the human body and a size of each of the parts;
    根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。A first human body model is established based on the plurality of locations and the size of each of the locations.
  7. 根据权利要求1所述的游戏实现方法,其中,获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上之后,还包括:The game implementation method according to claim 1, wherein after acquiring the decoration of the virtual character model in the game and adding the decoration to the second human body model, the method further comprises:
    获取所述游戏中对所述虚拟人物模型的控制指令;Obtaining a control instruction for the virtual character model in the game;
    根据所述控制指令控制所述第二人体模型。The second human body model is controlled according to the control instruction.
  8. 一种游戏实现装置,包括:A game implementation device, comprising:
    模型建立模块,用于根据获取到的人体信息建立第一人体模型;a model establishing module, configured to establish a first human body model according to the acquired human body information;
    模型调整模块,用于当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;a model adjustment module, configured to reduce or enlarge the first human body model according to a virtual character model in the game to detect a startup game, to obtain a second human body model, and a size of the second human body model The dimensions of the virtual character model are adapted;
    替换模块,用于将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;a replacement module, configured to replace the virtual character model in the game with the second human body model;
    装饰模块,用于获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。And a decoration module, configured to acquire a decoration piece of the virtual character model in the game, and add the decoration piece to the second human body model.
  9. 根据权利要求8所述的游戏实现装置,其中,所述装饰模块用于:The game implementing device according to claim 8, wherein the decoration module is configured to:
    获取所述游戏中所述虚拟人物模型多个身体部位的装饰件;Obtaining a decorative piece of the plurality of body parts of the virtual character model in the game;
    将所述装饰件添加到所述第二人体模型对应的身体部位上。The decorative piece is added to a body part corresponding to the second human body model.
  10. 根据权利要求8所述的游戏实现装置,其中,还包括添加模块,所述添加模块用于:The game implementing apparatus according to claim 8, further comprising an adding module, wherein the adding module is configured to:
    获取所述人体的性别信息;Obtaining gender information of the human body;
    根据所述性别信息获取预设装饰件;Obtaining a preset decoration according to the gender information;
    将所述预设装饰件添加至所述第一人体模型。The preset trim is added to the first mannequin.
  11. 根据权利要求8所述的游戏实现装置,其中,所述模型调整模块包括:The game implementing device of claim 8, wherein the model adjustment module comprises:
    第一获取子模块,用于当检测到启动游戏时,获取所述游戏中的虚拟人物模型的第一尺寸,所述第一尺寸为所述虚拟人物模型预设部位的尺寸;a first acquiring submodule, configured to acquire a first size of the virtual character model in the game when the game is started, where the first size is a size of the preset part of the virtual character model;
    调整子模块,用于根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。Adjusting a sub-module for reducing or enlarging the first human body model according to the first size to obtain a second human body model, the size of the preset portion of the second human body model and the first The dimensions are equal.
  12. 根据权利要求8所述的游戏实现装置,其中,所述模型调整模块用于:The game implementing device according to claim 8, wherein the model adjustment module is configured to:
    当检测到启动游戏时,获取所述游戏中的虚拟人物模型的尺寸;Obtaining a size of the virtual character model in the game when the game is started is detected;
    将所述第一人体模型的尺寸与所述虚拟人物模型的尺寸进行比较,以得到所述第一人体模型的尺寸与所述虚拟人物模型的尺寸之间的大小关系;Comparing a size of the first human body model with a size of the virtual character model to obtain a size relationship between a size of the first human body model and a size of the virtual character model;
    当所述第一人体模型的尺寸大于所述虚拟人物模型的尺寸时,对所述第一人体模型进行缩小;When the size of the first human body model is larger than the size of the virtual character model, the first human body model is reduced;
    当所述第一人体模型的尺寸小于所述虚拟人物模型的尺寸时,对所述第一人体模型进行放大。The first human body model is enlarged when the size of the first human body model is smaller than the size of the virtual human model.
  13. 一种存储介质,其中,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行以下步骤:A storage medium, wherein the storage medium stores a computer program, and when the computer program runs on a computer, causes the computer to perform the following steps:
    根据获取到的人体信息建立第一人体模型;Establishing a first human body model according to the acquired human body information;
    当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
    将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;Substituting the virtual character model in the game with the second human body model;
    获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。Acquiring a decorative piece of the virtual character model in the game, and adding the decorative piece to the second mannequin.
  14. 一种电子设备,其中,所述电子设备包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行以下步骤:An electronic device, wherein the electronic device includes a processor and a memory, wherein the memory stores a computer program, and the processor, by calling the computer program stored in the memory, is configured to perform the following steps:
    根据获取到的人体信息建立第一人体模型;Establishing a first human body model according to the acquired human body information;
    当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;When detecting the start of the game, the first mannequin is reduced or enlarged according to the virtual character model in the game to obtain a second human body model, the size of the second human body model and the virtual character model The size is adapted;
    将所述游戏中的所述虚拟人物模型替换为所述第二人体模型;Substituting the virtual character model in the game with the second human body model;
    获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上。Acquiring a decorative piece of the virtual character model in the game, and adding the decorative piece to the second mannequin.
  15. 根据权利要求14所述的电子设备,其中,获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上时,所述处理器用于执行以下步骤:The electronic device according to claim 14, wherein when the garnish of the avatar model in the game is acquired and the garnish is added to the second mannequin, the processor is configured to perform the following step:
    获取所述游戏中所述虚拟人物模型多个身体部位的装饰件;Obtaining a decorative piece of the plurality of body parts of the virtual character model in the game;
    将所述装饰件添加到所述第二人体模型对应的身体部位上。The decorative piece is added to a body part corresponding to the second human body model.
  16. 根据权利要求14所述的电子设备,其中,根据获取到的人体信息建立第一人体模型之后,所述处理器还用于执行以下步骤:The electronic device according to claim 14, wherein after the first human body model is established according to the acquired human body information, the processor is further configured to perform the following steps:
    获取所述人体的性别信息;Obtaining gender information of the human body;
    根据所述性别信息获取预设装饰件;Obtaining a preset decoration according to the gender information;
    将所述预设装饰件添加至所述第一人体模型。The preset trim is added to the first mannequin.
  17. 根据权利要求14所述的电子设备,其中,当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型时,所述处理器用于执行以下步骤:The electronic device according to claim 14, wherein when the game is started, the first human body model is reduced or enlarged according to a virtual character model in the game to obtain a second human body model, The processor is used to perform the following steps:
    当检测到启动游戏时,获取所述游戏中所述虚拟人物模型的第一尺寸,所述第一尺寸为所述虚拟人物模型预设部位的尺寸;Obtaining, when the game is started, a first size of the virtual character model in the game, the first size being a size of a preset part of the virtual character model;
    根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。And reducing or enlarging the first human body model according to the first size to obtain a second human body model, wherein a size of the preset portion of the second human body model is equal to the first size.
  18. 根据权利要求14所述的电子设备,其中,当检测到启动游戏时,根据所述游戏中的虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型时,所述处理器用于执行以下步骤:The electronic device according to claim 14, wherein when the game is started, the first human body model is reduced or enlarged according to a virtual character model in the game to obtain a second human body model, The processor is used to perform the following steps:
    当检测到启动游戏时,获取所述游戏中的虚拟人物模型的尺寸;Obtaining a size of the virtual character model in the game when the game is started is detected;
    将所述第一人体模型的尺寸与所述虚拟人物模型的尺寸进行比较,以得到所述第一人体模型的尺寸与所述虚拟人物模型的尺寸之间的大小关系;Comparing a size of the first human body model with a size of the virtual character model to obtain a size relationship between a size of the first human body model and a size of the virtual character model;
    当所述第一人体模型的尺寸大于所述虚拟人物模型的尺寸时,对所述第一人体模型进行缩小;When the size of the first human body model is larger than the size of the virtual character model, the first human body model is reduced;
    当所述第一人体模型的尺寸小于所述虚拟人物模型的尺寸时,对所述第一人体模型进行放大。The first human body model is enlarged when the size of the first human body model is smaller than the size of the virtual human model.
  19. 根据权利要求14所述的电子设备,其中,根据获取到的人体信息建立第一人体模型时,所述处理器用于执行以下步骤:The electronic device according to claim 14, wherein when the first human body model is established based on the acquired human body information, the processor is configured to perform the following steps:
    多次获取人体的全身图像;Obtaining a full-body image of the human body several times;
    分别对每一幅所述全身图像进行识别,以识别出所述人体的多个部位以及每个所述部位的尺寸;Identifying each of the whole body images separately to identify a plurality of parts of the human body and a size of each of the parts;
    根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。A first human body model is established based on the plurality of locations and the size of each of the locations.
  20. 根据权利要求14所述的电子设备,其中,获取所述游戏中所述虚拟人物模型的装饰件,并将所述装饰件添加到所述第二人体模型上之后,所述处理器还用于执行以下步骤:The electronic device according to claim 14, wherein after acquiring a decoration of the virtual character model in the game and adding the decoration to the second mannequin, the processor is further used for Perform the following steps:
    获取所述游戏中对所述虚拟人物模型的控制指令;Obtaining a control instruction for the virtual character model in the game;
    根据所述控制指令控制所述第二人体模型。The second human body model is controlled according to the control instruction.
PCT/CN2019/077416 2018-03-26 2019-03-08 Method and device for implementing game, storage medium, and electronic apparatus WO2019184679A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810253989.5A CN108525306B (en) 2018-03-26 2018-03-26 Game implementation method and device, storage medium and electronic equipment
CN201810253989.5 2018-03-26

Publications (1)

Publication Number Publication Date
WO2019184679A1 true WO2019184679A1 (en) 2019-10-03

Family

ID=63484829

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/077416 WO2019184679A1 (en) 2018-03-26 2019-03-08 Method and device for implementing game, storage medium, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN108525306B (en)
WO (1) WO2019184679A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108525306B (en) * 2018-03-26 2020-03-06 Oppo广东移动通信有限公司 Game implementation method and device, storage medium and electronic equipment
CN109558383B (en) * 2018-12-10 2021-07-09 网易(杭州)网络有限公司 Fashion output processing method and device for game role and electronic equipment
CN110613935A (en) * 2019-10-21 2019-12-27 网易(杭州)网络有限公司 Game data processing method and device and electronic equipment
CN113797529B (en) * 2021-09-18 2023-11-21 珠海金山数字网络科技有限公司 Target display method and device, computing equipment and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685515A (en) * 2008-09-22 2010-03-31 陈越文 Method for remotely trying on clothes on Internet
JP2010171676A (en) * 2009-01-22 2010-08-05 Olympus Imaging Corp Camera, image display device, image display method, and program
CN102855413A (en) * 2012-09-24 2013-01-02 浙江秀维科技有限公司 Three-dimensional clothing fitting system and operation method thereof
CN103530782A (en) * 2013-10-28 2014-01-22 浙江工商大学 WEB based online fitting-room system
CN106504060A (en) * 2016-10-22 2017-03-15 肇庆市联高电子商务有限公司 Human body system for trying based on ecommerce
CN106530376A (en) * 2016-10-10 2017-03-22 福建网龙计算机网络信息技术有限公司 Three-dimensional role building method and system
CN106582005A (en) * 2016-11-14 2017-04-26 深圳市豆娱科技有限公司 Data synchronous interaction method and device in virtual games
CN107154069A (en) * 2017-05-11 2017-09-12 上海微漫网络科技有限公司 A kind of data processing method and system based on virtual role
CN108525306A (en) * 2018-03-26 2018-09-14 广东欧珀移动通信有限公司 Game implementation method, device, storage medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008139482A2 (en) * 2007-05-16 2008-11-20 Eyecue Vision Technologies Ltd. System and method for physically interactive board games
CN105447480A (en) * 2015-12-30 2016-03-30 吉林纪元时空动漫游戏科技集团股份有限公司 Face recognition game interactive system
CN106984039A (en) * 2017-04-14 2017-07-28 苏州蜗牛数字科技股份有限公司 A kind of method for projecting to real human body in VR game
CN107174826A (en) * 2017-05-25 2017-09-19 合肥泽诺信息科技有限公司 A kind of game role based on augmented reality is played the part of with the dressing system that changes the outfit
CN107469355A (en) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 Game image creation method and device, terminal device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685515A (en) * 2008-09-22 2010-03-31 陈越文 Method for remotely trying on clothes on Internet
JP2010171676A (en) * 2009-01-22 2010-08-05 Olympus Imaging Corp Camera, image display device, image display method, and program
CN102855413A (en) * 2012-09-24 2013-01-02 浙江秀维科技有限公司 Three-dimensional clothing fitting system and operation method thereof
CN103530782A (en) * 2013-10-28 2014-01-22 浙江工商大学 WEB based online fitting-room system
CN106530376A (en) * 2016-10-10 2017-03-22 福建网龙计算机网络信息技术有限公司 Three-dimensional role building method and system
CN106504060A (en) * 2016-10-22 2017-03-15 肇庆市联高电子商务有限公司 Human body system for trying based on ecommerce
CN106582005A (en) * 2016-11-14 2017-04-26 深圳市豆娱科技有限公司 Data synchronous interaction method and device in virtual games
CN107154069A (en) * 2017-05-11 2017-09-12 上海微漫网络科技有限公司 A kind of data processing method and system based on virtual role
CN108525306A (en) * 2018-03-26 2018-09-14 广东欧珀移动通信有限公司 Game implementation method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN108525306B (en) 2020-03-06
CN108525306A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN110021061B (en) Collocation model construction method, clothing recommendation method, device, medium and terminal
US11393154B2 (en) Hair rendering method, device, electronic apparatus, and storage medium
WO2019184679A1 (en) Method and device for implementing game, storage medium, and electronic apparatus
US9129478B2 (en) Attributing user action based on biometric identity
US20230419582A1 (en) Virtual object display method and apparatus, electronic device, and medium
CN108712603B (en) Image processing method and mobile terminal
CN110740262A (en) Background music adding method and device and electronic equipment
CN108876878B (en) Head portrait generation method and device
CN113569614A (en) Virtual image generation method, device, equipment and storage medium
CN114175113A (en) Electronic device for providing head portrait and operation method thereof
US11983826B2 (en) 3D upper garment tracking
CN109461124A (en) A kind of image processing method and terminal device
CN110420464B (en) Method and device for determining virtual pet image parameters and readable storage medium
CN112007362B (en) Display control method, device, storage medium and equipment in virtual world
CN108563327A (en) Augmented reality method, apparatus, storage medium and electronic equipment
CN113426129B (en) Method, device, terminal and storage medium for adjusting appearance of custom roles
CN107563353B (en) Image processing method and device and mobile terminal
CN112449098B (en) Shooting method, device, terminal and storage medium
CN108525307B (en) Game implementation method and device, storage medium and electronic equipment
CN111031174B (en) Virtual article transmission method and electronic equipment
CN114028808A (en) Virtual pet appearance editing method and device, terminal and storage medium
TWI729323B (en) Interactive gamimg system
CN108876498B (en) Information display method and device
CN111161133A (en) Picture processing method and electronic equipment
CN111640204B (en) Method and device for constructing three-dimensional object model, electronic equipment and medium

Legal Events

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

Ref document number: 19776338

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19776338

Country of ref document: EP

Kind code of ref document: A1