[go: up one dir, main page]

CN108525307B - Game implementation method and device, storage medium and electronic equipment - Google Patents

Game implementation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108525307B
CN108525307B CN201810254611.7A CN201810254611A CN108525307B CN 108525307 B CN108525307 B CN 108525307B CN 201810254611 A CN201810254611 A CN 201810254611A CN 108525307 B CN108525307 B CN 108525307B
Authority
CN
China
Prior art keywords
human body
model
game
size
virtual character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810254611.7A
Other languages
Chinese (zh)
Other versions
CN108525307A (en
Inventor
蓝和
谭筱
王健
邹奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810254611.7A priority Critical patent/CN108525307B/en
Publication of CN108525307A publication Critical patent/CN108525307A/en
Application granted granted Critical
Publication of CN108525307B publication Critical patent/CN108525307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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

Landscapes

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

Abstract

The embodiment of the application provides a game implementation method, a game implementation device, a storage medium and electronic equipment, wherein the game implementation method comprises the following steps: establishing a first human body model according to the obtained human body information; when detecting that a game is started, acquiring a virtual character model in the game; reducing or amplifying the first human body model according to the virtual human body model to obtain a second human body model; and replacing the virtual character model in the game with the second human body model. In the game implementation method, the human body model of the real character can be combined into the game, so that the character model in the game is more vivid, and the reality of the game is improved.

Description

游戏实现方法、装置、存储介质及电子设备Game realization method, device, storage medium and electronic device

技术领域technical field

本申请涉及电子技术领域,特别涉及一种游戏实现方法、装置、存储介质及电子设备。The present application relates to the field of electronic technology, and in particular, to a game implementation method, device, 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 various 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. The game has a single form and cannot combine virtual characters with real scenes.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种游戏实现方法、装置、存储介质及电子设备,可以提高游戏的真实性。Embodiments of the present application provide a game implementation method, device, storage medium, and electronic device, which can improve the authenticity of the game.

本申请实施例提供一种游戏实现方法,包括:The embodiment of the present application provides a game implementation method, including:

根据获取到的人体信息建立第一人体模型;Establish a first human body model according to the obtained human body information;

当检测到启动游戏时,获取所述游戏中的虚拟人物模型;When it is detected to start the game, obtain the virtual character model in the game;

根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;reducing or enlarging the first human body model according to the virtual character model to obtain a second human body model, the size of the second human body model is adapted to the size of the virtual character model;

将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。Replacing the avatar in the game with the second mannequin.

本申请实施例还提供一种游戏实现装置,包括:The embodiment of the present application also provides a game implementation device, including:

模型建立模块,用于根据获取到的人体信息建立第一人体模型;a model building module, used for building a first human body model according to the obtained human body information;

获取模块,用于当检测到启动游戏时,获取所述游戏中的虚拟人物模型;an acquisition module for acquiring the virtual character model in the game when it is detected that the game is started;

模型调整模块,用于根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;A model adjustment module for reducing or enlarging the first human body model according to the virtual character model to obtain a second human body model, the size of the second human body model is adapted to the size of the virtual character model ;

替换模型,用于将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。A replacement model for replacing the virtual character model in the game with the second human body model.

本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述游戏实现方法。An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is made to execute the above game implementation method.

本申请实施例还提供一种电子设备,包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行上述游戏实现方法。An embodiment of the present application further provides an electronic device, including a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the above game implementation method by calling the computer program stored in the memory .

本申请实施例提供的游戏实现方法,包括:根据获取到的人体信息建立第一人体模型;当检测到启动游戏时,获取所述游戏中的虚拟人物模型;根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型;将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。所述游戏实现方法中,可以将现实人物的人体模型结合到游戏中,使得游戏中的人物模型更逼真,提高游戏的真实性。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 it is detected to start a game; The first human body model is reduced or enlarged to obtain a second human body model; the virtual character model in the game is replaced with the second human body model. In the game realization method, the human body model of a real character can be integrated into the game, so that the character model in the game is more realistic and the authenticity of the game is improved.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图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 of a game implementation method provided by an embodiment of the present application.

图3为本申请实施例提供的游戏实现方法的另一流程示意图。FIG. 3 is another schematic flowchart of a game implementation method provided by an embodiment of the present application.

图4为本申请实施例提供的游戏实现方法的又一流程示意图。FIG. 4 is another schematic flowchart of a game implementation method provided by 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 an 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 structural diagram of a first structure of a game implementation apparatus provided by an embodiment of the present application.

图9为本申请实施例提供的游戏实现装置的第二种结构示意图。FIG. 9 is a schematic diagram of a second structure of the game implementation apparatus provided by the embodiment of the present application.

图10为本申请实施例提供的游戏实现装置的第三种结构示意图。FIG. 10 is a schematic structural diagram of a third type of a game implementation apparatus provided by an embodiment of the present application.

图11为本申请实施例提供的游戏实现装置的第四种结构示意图。FIG. 11 is a schematic diagram of a fourth structure of the game implementation apparatus provided by the embodiment of the present application.

图12为本申请实施例提供的游戏实现装置的第五种结构示意图。FIG. 12 is a schematic diagram of a fifth structure of the game implementation apparatus provided by the embodiment of the present application.

图13为本申请实施例提供的电子设备的结构示意图。FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

图14为本申请实施例提供的电子设备的另一结构示意图。FIG. 14 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of this application.

本申请的说明书和权利要求书以及上述附图中的术语“第一”、“第二”、“第三”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应当理解,这样描述的对象在适当情况下可以互换。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤的过程、方法或包含了一系列模块或单元的装置、电子设备、系统不必限于清楚地列出的那些步骤或模块或单元,还可以包括没有清楚地列出的步骤或模块或单元,也可以包括对于这些过程、方法、装置、电子设备或系统固有的其它步骤或模块或单元。The terms "first", "second", "third", etc. (if present) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method comprising a series of steps or an apparatus, electronic device, system comprising a series of modules or units is not necessarily limited to those steps or modules or units explicitly listed, and may also include steps not explicitly listed or modules or units, may also include other steps or modules or units inherent to these 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. The user can get an intuitive feeling of the game character through the virtual character model. Moreover, through various attributes of the character, the user can learn various game abilities of the game character. In the process of the user playing the game with others, the user can realize various game functions by controlling the virtual character model.

本申请实施例提供一种游戏实现方法,所述游戏实现方法可以应用于电子设备中。所述电子设备可以是智能手机、平板电脑等设备。如图2所示,所述游戏实现方法,可以包括以下步骤:An 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 smart phone, a tablet computer or the like. As shown in Figure 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 obtain various information of the human body, and establish a first human body model according to the obtained human body information. The first human body model can intuitively represent the features of the human body, and the first human body model is shown in FIG. 5 . The various information may include information such as the height, weight, and measurements of the human body, and may also include the dimensions of various parts of the human body, such as the dimensions of the head, hands, legs, and other parts of the human body.

需要说明的是,所述人体信息的信息量多少决定了所述第一人体模型的精细程度。当所述人体信息的信息量较大时,可以使得建立的第一人体模型非常逼真,第一人体模型中每个身体部位的尺寸可以与所述人体的真实尺寸很接近。It should be noted that the amount of the human body information determines the fineness of the first human body model. When the information amount of the human body information is large, the established first human body model can be 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, or someone other than the user, such as a friend of the user.

120,当检测到启动游戏时,获取所述游戏中的虚拟人物模型。120. When it is detected that the game is started, acquire a virtual character model in the game.

当电子设备检测到启动游戏时,可以获取所述游戏中的虚拟人物模型。其中,所述游戏可以为安装在电子设备中的游戏。所述游戏可以为角色扮演类、电子竞技类、模拟养成类等多种类型的游戏。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 games such as role-playing, electronic sports, and simulation development.

所述游戏中包括了虚拟人物模型。所述游戏的一种游戏界面如图1所示。用户在游戏过程中,通过控制所述虚拟人物模型来实现游戏功能。例如,用户可以通过控制所述虚拟人物模型来与其他玩家控制的虚拟人物模型进行对战。Virtual character models are included in the game. A game interface of the game is shown in FIG. 1 . During the game, the user realizes the game function by controlling the virtual character model. For example, a user may play against avatars controlled by other players by controlling the avatars.

130,根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配。130. Reduce or enlarge the first human body model according to the virtual character model to obtain a second human body model, where 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 limitation of the screen size 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 height of the avatar model is 3 cm (centimeters).

而所述第一人体模型是根据获取到的人体信息来建立的,从而所述第一人体模型的尺寸通常较大。例如,所述第一人体模型的高度为170cm(厘米)。此时,需要对所述第一人体模型进行缩小。The first human body model is established according to the acquired human body information, so the size of the first human body model is usually large. For example, the height of the first mannequin is 170 cm (centimeter). At this time, the first human body model needs to be reduced.

但是在一些情况下,可能由于获取到的人体信息中的数据单位(例如,身高的单位、体重的单位)较大,而导致人体信息中实际的数据很小,此时建立的第一人体模型的尺寸就很小。例如,获取到的人体信息中身高的单位为米,此时获取到的数据可能为1.7m(米),从而建立的第一人体模型就很小。此时,需要对所述第一人体模型进行放大。However, in some cases, the actual data in the human body information may be very small due to the large data units (for example, the unit of height and the unit of weight) in the acquired human body information. The first human body model established at this time size is small. For example, the unit of height in the acquired human body information is meters, and the acquired data at this time may be 1.7 m (meters), so the first human body model established is very small. At this time, the first human body model needs to be enlarged.

电子设备在获取所述游戏中的虚拟人物模型后,可以根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型。其中,当所述第一人体模型的尺寸大于所述虚拟人物模型的尺寸时,对所述第一人体模型进行缩小;当所述第一人体模型的尺寸小于所述虚拟人物模型的尺寸时,对所述第一人体模型进行放大。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. Wherein, 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 character model, The first mannequin 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 matching of the size of the second mannequin to the size of the virtual character model means that the difference between the size of the second mannequin and the size of the virtual character model is acceptable. within the range.

140,将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。140. Replace the virtual character model in the game with the second human body model.

其中,电子设备得到第二人体模型后,将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。具体地,电子设备先将游戏中的所述虚拟人物模型删除,随后将所述第二人体模型添加至所述游戏中。将所述游戏中的所述虚拟人物模型替换为所述第二人体模型后的游戏界面如图7所示。Wherein, after obtaining the second human body model, the electronic device replaces the virtual character model in the game 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 shown in FIG. 7 .

从而,电子设备可以将现实人物的人体模型结合到游戏中,使得所述游戏中的人物模型更逼真,提高游戏的真实性,也可以提高用户游戏时的乐趣。Therefore, the electronic device can integrate the human body model of the real character into the game, so that the character model in the game is more realistic, the authenticity of the game is improved, and the user's enjoyment of the game can be improved.

在一些实施例中,如图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, includes the following steps:

111,多次获取人体的全身图像;111. Acquire whole body images of the human body for many times;

112,分别对每一幅所述全身图像进行识别,以识别出所述人体的多个部位以及每个所述部位的尺寸;112. Recognize each of the whole body images to identify multiple parts of the human body and the size of each of the parts;

113,根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。113. Establish a first human body model according to the multiple parts and the size of each part.

其中,电子设备可以具有摄像头。电子设备可以通过摄像头多次拍摄人体的照片,从而多次获取人体的全身图像。电子设备每获取一幅人体的全身图像后,可以对所述全身图像进行识别。从而,电子设备可以通过对人体的多幅全身图像的识别,来识别出所述人体的多个部位以及每个所述部位的尺寸。例如,电子设备可以通过对多幅图像的识别,来识别出所述人体的头部高度和宽度、手部的长度和手指的粗细、腰部的尺寸、腿部的长度和直径等尺寸。Among them, the electronic device may have a camera. The electronic device can take pictures of the human body multiple times through the camera, so as to obtain the whole body image of the human body multiple times. After the electronic device acquires a whole body image of a human body, the whole body image can be identified. Therefore, the electronic device can identify multiple parts of the human body and the size of each of the parts by recognizing multiple 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 fingers, the size of the waist, the length and diameter of the legs and other dimensions of the human body by recognizing multiple images.

随后,电子设备根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。所述第一人体模型可以直观、全面的表现出所述人体各个部位的尺寸。Subsequently, the electronic device creates a first human body model based on the plurality of parts and the size of each of the parts. The first human body model can intuitively and comprehensively represent the dimensions of various parts of the human body.

在一些实施例中,如图3所示,步骤130、根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配,包括以下步骤:In some embodiments, as shown in FIG. 3 , in step 130, the first human body model is reduced or enlarged according to the virtual character model to obtain a second human body model, the size of the second human body model is the same as that of the virtual character model. to match the size of the virtual character model, including the following steps:

131,获取所述虚拟人物模型的第一尺寸,所述第一尺寸为所述虚拟人物模型预设部位的尺寸;131. Obtain a first size of the virtual character model, where the first size is the size of a preset part of the virtual character model;

132,根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。132. Reduce or enlarge the first human body model according to the first size to obtain a second human body model, where the size of the preset part 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 part may be selected on the virtual character model. Wherein, a part of the virtual character model may be preset as a reference part. For example, the head of the virtual character model may be set as the reference part. It can be understood that the whole body of the virtual character model can also be set as the reference part.

电子设备可以获取所述虚拟人物模型的第一尺寸。所述第一尺寸为所述虚拟人物模型预设部位的尺寸。其中,所述预设部位即为所述虚拟人物模型上预先设置的参考部位。所述第一尺寸为所述参考部位的一个尺寸。例如,所述参考部位为所述虚拟人物模型的头部,所述第一尺寸可以为所述头部的高度。The electronic device may acquire the first size of the avatar model. The first size is the size of a preset part of the virtual character model. Wherein, the preset part is a preset reference part on the virtual character model. The first dimension is a dimension of the reference site. For example, the reference part 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. Wherein, the size of the preset part of the second human body model is equal to the first size. For example, if the preset part is the head, and the first size is the height of the head, the height of the head of the obtained second human body model is equal to the first size.

在一些实施例中,如图4所示,步骤110、根据获取到的人体信息建立第一人体模型之后,还可以包括以下步骤:In some embodiments, as shown in FIG. 4 , step 110, after establishing the first human body model according to the acquired human body information, may further include the following steps:

151,获取所述人体的性别信息;151. Obtain gender information of the human body;

152,根据所述性别信息获取预设装饰件;152. Acquire a preset decorative piece according to the gender information;

153,将所述装饰件添加至所述第一人体模型。153. Add the decorative piece to the first mannequin.

电子设备根据获取到的人体信息建立第一人体模型之后,可以进一步获取所述人体的性别信息。其中,电子设备可以通过对所述人体的全身图像进行识别或者对所述人体的面部进行识别来获取所述人体的性别信息。此外,电子设备还可以直接接收用户输入的性别信息。After establishing the first human body model according to the acquired human body information, the electronic device may further acquire the gender information of the human body. The electronic device may acquire the gender information of the human body by recognizing the whole body image of the human body or recognizing the face of the human body. In addition, the electronic device can also directly receive the gender information input by the user.

随后,电子设备根据所述性别信息获取预设装饰件。所述预设装饰件可以为预先设置的装饰物品。例如,对于性别信息为男性,预设装饰件可以为领结、手环、腰部挂饰等装饰件。对于性别信息为女性,预设装饰件可以为帽子、披风、手套等装饰件。Subsequently, the electronic device acquires a preset decorative piece according to the gender information. The preset decorative piece may be a preset decorative item. For example, if the gender information is male, the preset decorative parts may be decorative parts such as a bow tie, a bracelet, and a waist ornament. If the gender information is female, the preset decorative parts may be hats, capes, gloves and other decorative parts.

电子设备根据所述性别信息获取到预设装饰件后,可以将所述装饰件添加至所述第一人体模型,以美化所述第一人体模型,使得所述第一人体模型更具美感,也可以提高用户对所述第一人体模型的喜好程度。After the electronic device obtains the preset decorative piece according to the gender information, the decorative piece can be added to the first mannequin to beautify the first mannequin and make the first mannequin more aesthetically pleasing, It is also possible to improve the user's preference for the first mannequin.

在一些实施例中,如图4所示,步骤140、将所述游戏中的所述虚拟人物模型替换为所述第二人体模型之后,还包括以下步骤:In some embodiments, as shown in FIG. 4 , step 140, after replacing the virtual character model in the game with the second human body model, further includes the following steps:

161,获取所述游戏中对所述虚拟人物模型的控制指令;161. Obtain the control instructions for the virtual character model in the game;

162,根据所述控制指令控制所述第二人体模型。162. Control the second human body model according to the control instruction.

可以理解的,用户在通过所述游戏进行娱乐时,用户控制游戏中的所述虚拟人物模型来完成游戏功能,例如与其他玩家控制的虚拟人物模型进行对战。用户在控制所述虚拟人物模型时,电子设备根据用户触发的控制指令来控制所述虚拟人物模型。例如,电子设备根据用户触发的移动指令来控制所述虚拟人物模型移动,根据用户触发的攻击指令来控制所述虚拟人物模型进行攻击。It can be understood that, when the user performs entertainment through the game, the user controls the virtual character model in the game to complete game functions, such as playing against virtual character models controlled by other players. 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 movement of the avatar model according to a user-triggered movement instruction, and controls the avatar model to attack according to an attack instruction triggered by the user.

电子设备将所述游戏中的所述虚拟人物模型替换为所述第二人体模型之后,可以获取所述游戏中对所述虚拟人物模型的控制指令。其中,所述控制指令即为用户在所述电子设备上触发的移动指令、攻击指令等游戏指令。随后,电子设备根据所述控制指令控制所述第二人体模型,以实现用户控制所述第二人体模型进行游戏。从而,可以将真实的用户结合到游戏中,提高游戏的真实性。After the electronic device replaces the virtual character model in the game with the second human body model, it can acquire a control instruction for the virtual character model in the game. The control instructions are game instructions such as movement instructions and attack instructions triggered by the user on the electronic device. Then, the electronic device controls the second human body model according to the control instruction, so that the user controls the second human body model to play a game. Thus, real users can be integrated into the game to improve the authenticity of the game.

具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present application is not limited by the execution order of the described steps, and certain steps may also be performed in other sequences or simultaneously under the condition of no conflict.

由上可知,本申请实施例提供的游戏实现方法,包括:根据获取到的人体信息建立第一人体模型;当检测到启动游戏时,获取所述游戏中的虚拟人物模型;根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型;将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。所述游戏实现方法中,可以将现实人物的人体模型结合到游戏中,使得游戏中的人物模型更逼真,提高游戏的真实性。As can be seen from the above, the game implementation method provided by the embodiment of the present application includes: establishing a first human body model according to the obtained human body information; when detecting that the game is started, obtaining a virtual character model in the game; according to the virtual character The model reduces or enlarges the first human body model to obtain a second human body model; and replaces the virtual character model in the game with the second human body model. In the game realization method, the human body model of a real character can be integrated into the game, so that the character model in the game is more realistic and the authenticity of the game is improved.

本申请实施例还提供一种游戏实现装置,所述游戏实现装置可以集成在电子设备中,所述电子设备可以是智能手机、平板电脑等设备。The embodiments of the present application further provide a game implementation apparatus, and the game implementation apparatus may be integrated in an electronic device, and the electronic device may be a smart phone, a tablet computer, or the like.

如图8所示,游戏实现装置200可以包括:模型建立模块201、获取模块202、模型调整模块203以及替换模块204。As shown in FIG. 8 , the game realization apparatus 200 may include: a model establishment module 201 , an acquisition module 202 , a model adjustment module 203 and a replacement module 204 .

模型建立模块201,用于根据获取到的人体信息建立第一人体模型。The model building module 201 is configured to build a first human body model according to the obtained human body information.

其中,所述模型建立模块201可以获取人体的多种信息,并根据获取到的人体信息建立第一人体模型。所述第一人体模型可以直观地表现出人体的特征。所述多种信息可以包括人体的身高、体重、三围尺寸等信息,也可以包括人体各个部位的尺寸,例如可以包括人体头部、手部、腿部等多个部位的尺寸。Wherein, the model building module 201 can obtain various information of the human body, and establish a first human body model according to the obtained human body information. The first human body model can intuitively represent the characteristics of the human body. The various information may include information such as the height, weight, and measurements of the human body, and may also include the dimensions of various parts of the human body, such as the dimensions of the head, hands, legs, and other parts of the human body.

需要说明的是,所述人体信息的信息量多少决定了所述第一人体模型的精细程度。当所述人体信息的信息量较大时,可以使得建立的第一人体模型非常逼真,第一人体模型中每个身体部位的尺寸可以与所述人体的真实尺寸很接近。It should be noted that the amount of the human body information determines the fineness of the first human body model. When the information amount of the human body information is large, the established first human body model can be 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, or someone other than the user, such as a friend of the user.

获取模块202,用于当检测到启动游戏时,获取所述游戏中的虚拟人物模型。The obtaining module 202 is configured to obtain the virtual character model in the game when it is detected that the game is started.

当检测到启动游戏时,获取模块202可以获取所述游戏中的虚拟人物模型。其中,所述游戏可以为安装在电子设备中的游戏。所述游戏可以为角色扮演类、电子竞技类、模拟养成类等多种类型的游戏。When the startup of the game is detected, the obtaining module 202 may obtain the 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 games such as role-playing, electronic sports, and simulation development.

所述游戏中包括了虚拟人物模型。用户在游戏过程中,通过控制所述虚拟人物模型来实现游戏功能。例如,用户可以通过控制所述虚拟人物模型来与其他玩家控制的虚拟人物模型进行对战。Virtual character models are included in the game. During the game, the user realizes the game function by controlling the virtual character model. For example, a user may play against avatars controlled by other players by controlling the avatars.

模型调整模块203,用于根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配。The model adjustment module 203 is used to reduce or enlarge the first human body model according to the virtual character model to obtain a second human body model, the size of the second human body model is suitable for the size of the virtual character 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 limitation of the screen size 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 height of the avatar model is 3 cm (centimeters).

而所述第一人体模型是根据获取到的人体信息来建立的,从而所述第一人体模型的尺寸通常较大。例如,所述第一人体模型的高度为170cm(厘米)。此时,需要对所述第一人体模型进行缩小。The first human body model is established according to the acquired human body information, so the size of the first human body model is usually large. For example, the height of the first mannequin is 170 cm (centimeter). At this time, the first human body model needs to be reduced.

但是在一些情况下,可能由于获取到的人体信息中的数据单位(例如,身高的单位、体重的单位)较大,而导致人体信息中实际的数据很小,此时建立的第一人体模型的尺寸就很小。例如,获取到的人体信息中身高的单位为米,此时获取到的数据可能为1.7m(米),从而建立的第一人体模型就很小。此时,需要对所述第一人体模型进行放大。However, in some cases, the actual data in the human body information may be very small due to the large data units (for example, the unit of height and the unit of weight) in the acquired human body information. The first human body model established at this time size is small. For example, the unit of height in the acquired human body information is meters, and the acquired data at this time may be 1.7 m (meters), so the first human body model established is very small. At this time, the first human body model needs to be enlarged.

获取模块202在获取所述游戏中的虚拟人物模型后,模型调整模块203可以根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型。其中,当所述第一人体模型的尺寸大于所述虚拟人物模型的尺寸时,对所述第一人体模型进行缩小;当所述第一人体模型的尺寸小于所述虚拟人物模型的尺寸时,对所述第一人体模型进行放大。After the acquiring module 202 acquires the virtual character model in the game, the model adjusting module 203 may reduce or enlarge the first human body model according to the virtual character model to obtain a second human body model. Wherein, 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 character model, The first mannequin 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 matching of the size of the second mannequin to the size of the virtual character model means that the difference between the size of the second mannequin and the size of the virtual character model is acceptable. within the range.

替换模块204,用于将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。A replacement module 204, configured to replace the virtual character model in the game with the second human body model.

其中,模型调整模块203得到第二人体模型后,替换模块204将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。具体地,替换模块204先将游戏中的所述虚拟人物模型删除,随后将所述第二人体模型添加至所述游戏中。Wherein, 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 into the game.

从而,可以将现实人物的人体模型结合到游戏中,使得所述游戏中的人物模型更逼真,提高游戏的真实性,也可以提高用户游戏时的乐趣。Therefore, the human body model of a real character can be integrated into the game, so that the character model in the game is more realistic, the authenticity of the game is improved, and the user's fun in the game can also be improved.

在一些实施例中,如图9所示,模型建立模块201包括:第二获取子模块2011、识别子模块2012、模型建立子模块2013。In some embodiments, as shown in FIG. 9 , the model establishment module 201 includes: a second acquisition submodule 2011 , an identification submodule 2012 , and a model establishment submodule 2013 .

第二获取子模块2011,用于多次获取人体的全身图像;The second acquisition sub-module 2011 is used to acquire the whole body image of the human body multiple times;

识别子模块2012,用于分别对每一幅所述全身图像进行识别,以识别出所述人体的多个部位以及每个所述部位的尺寸;an identification sub-module 2012, configured to identify each of the whole body images respectively, so as to identify multiple parts of the human body and the size of each of the parts;

模型建立子模块2013,用于根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。The model building sub-module 2013 is configured to build a first human body model according to the multiple parts and the size of each part.

其中,电子设备可以具有摄像头。第二获取子模块2011可以通过摄像头多次拍摄人体的照片,从而多次获取人体的全身图像。每获取一幅人体的全身图像后,识别子模块2012可以对所述全身图像进行识别。从而,识别子模块2012可以通过对人体的多幅全身图像的识别,来识别出所述人体的多个部位以及每个所述部位的尺寸。例如,识别子模块2012可以通过对多幅图像的识别,来识别出所述人体的头部高度和宽度、手部的长度和手指的粗细、腰部的尺寸、腿部的长度和直径等尺寸。Among them, the electronic device may have a camera. The second obtaining sub-module 2011 can take pictures of the human body multiple times through the camera, so as to obtain the whole body image of the human body multiple times. After acquiring a whole body image of a human body, the identification sub-module 2012 may identify the whole body image. Therefore, the identification sub-module 2012 can identify multiple parts of the human body and the size of each of the parts by identifying multiple whole body images of the human body. For example, the identification 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 fingers, the size of the waist, the length and diameter of the legs and other dimensions of the human body by identifying multiple images.

随后,模型建立子模块2013根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。所述第一人体模型可以直观、全面的表现出所述人体各个部位的尺寸。Subsequently, the model building sub-module 2013 builds a first human body model according to the plurality of parts and the size of each of the parts. The first human body model can intuitively and comprehensively represent the dimensions of various parts 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,用于获取所述虚拟人物模型的第一尺寸,所述第一尺寸为所述虚拟人物模型预设部位的尺寸;The first obtaining sub-module 2031 is used to obtain the first size of the virtual character model, where the first size is the size of the preset part of the virtual character model;

调整子模块2032,用于根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。The adjustment sub-module 2032 is used to 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 part of the second human body model is the same as the an equal size.

根据所述虚拟人物模型对所述第一人体模型进行缩小或放大时,可以在所述虚拟人物模型上选择一个参考部位。其中,可以预先设置所述虚拟人物模型的一个部位作为参考部位。例如,可以将所述虚拟人物模型的头部设置为参考部位。可以理解的,也可以将所述虚拟人物模型的全身设置为参考部位。When the first human body model is reduced or enlarged according to the virtual character model, a reference part may be selected on the virtual character model. Wherein, a part of the virtual character model may be preset as a reference part. For example, the head of the virtual character model may be set as the reference part. It can be understood that the whole body of the virtual character model can also be set as the reference part.

第一获取子模块2031可以获取所述虚拟人物模型的第一尺寸。所述第一尺寸为所述虚拟人物模型预设部位的尺寸。其中,所述预设部位即为所述虚拟人物模型上预先设置的参考部位。所述第一尺寸为所述参考部位的一个尺寸。例如,所述参考部位为所述虚拟人物模型的头部,所述第一尺寸可以为所述头部的高度。The first obtaining sub-module 2031 can obtain the first size of the virtual character model. The first size is the size of a preset part of the virtual character model. Wherein, the preset part is a preset reference part on the virtual character model. The first dimension is a dimension of the reference site. For example, the reference part 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. Wherein, the size of the preset part of the second human body model is equal to the first size. For example, if the preset part is the head, and the first size is the height of the head, the height of the head of the obtained second human body model is equal to the first size.

在一些实施例中,如图11所示,游戏实现装置200还包括添加模块205。所述添加模块205用于执行以下步骤:In some embodiments, as shown in FIG. 11 , the game implementing apparatus 200 further includes an adding module 205 . The adding module 205 is used to perform the following steps:

获取所述人体的性别信息;Obtain the gender information of the human body;

根据所述性别信息获取预设装饰件;obtaining a preset decorative piece according to the gender information;

将所述装饰件添加至所述第一人体模型。The trim is added to the first mannequin.

模型建立模块201根据获取到的人体信息建立第一人体模型之后,添加模块205可以进一步获取所述人体的性别信息。其中,添加模块205可以通过对所述人体的全身图像进行识别或者对所述人体的面部进行识别来获取所述人体的性别信息。此外,添加模块205还可以直接接收用户输入的性别信息。After the model building module 201 builds the first human body model according to the obtained human body information, the adding module 205 can further obtain the gender information of the human body. The adding module 205 may acquire the gender information of the human body by recognizing the whole body image of the human body or recognizing the face of the human body. In addition, the adding module 205 can also directly receive the gender information input by the user.

随后,添加模块205根据所述性别信息获取预设装饰件。所述预设装饰件可以为预先设置的装饰物品。例如,对于性别信息为男性,预设装饰件可以为领结、手环、腰部挂饰等装饰件。对于性别信息为女性,预设装饰件可以为帽子、披风、手套等装饰件。Subsequently, the adding module 205 acquires a preset decorative piece according to the gender information. The preset decorative piece may be a preset decorative item. For example, if the gender information is male, the preset decorative parts may be decorative parts such as a bow tie, a bracelet, and a waist ornament. If the gender information is female, the preset decorative parts may be hats, capes, gloves and other decorative parts.

添加模块205根据所述性别信息获取到预设装饰件后,可以将所述装饰件添加至所述第一人体模型,以美化所述第一人体模型,使得所述第一人体模型更具美感,也可以提高用户对所述第一人体模型的喜好程度。After the adding module 205 obtains the preset decorative pieces according to the gender information, the decorative pieces can be added to the first mannequin to beautify the first mannequin and make the first mannequin more aesthetically pleasing , the user's preference for the first human body model can also be improved.

在一些实施例中,如图12所示,游戏实现装置200还包括控制模块206。所述控制模块206用于执行以下步骤:In some embodiments, as shown in FIG. 12 , the game implementing apparatus 200 further includes a control module 206 . The control module 206 is used to perform the following steps:

获取所述游戏中对所述虚拟人物模型的控制指令;obtaining the control instructions 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 performs entertainment through the game, the user controls the virtual character model in the game to complete game functions, such as playing against virtual character models controlled by other players. 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 movement of the avatar model according to a user-triggered movement instruction, and controls the avatar model to attack according to an attack instruction triggered by the user.

替换模块204将所述游戏中的所述虚拟人物模型替换为所述第二人体模型之后,控制模块206可以获取所述游戏中对所述虚拟人物模型的控制指令。其中,所述控制指令即为用户在所述电子设备上触发的移动指令、攻击指令等游戏指令。随后,控制模块206根据所述控制指令控制所述第二人体模型,以实现用户控制所述第二人体模型进行游戏。从而,可以将真实的用户结合到游戏中,提高游戏的真实性。After the replacement module 204 replaces the virtual character model in the game with the second human body model, the control module 206 may acquire a control instruction for the virtual character model in the game. The control instructions are game instructions such as movement instructions and attack instructions triggered by the user on the electronic device. Then, the control module 206 controls the second human body model according to the control instruction, so that the user controls the second human body model to play a game. Thus, real users can be integrated into the game to improve the authenticity of the game.

具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现。During specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities.

由上可知,本申请实施例提供的游戏实现装置200,通过模型建立模块201根据获取到的人体信息建立第一人体模型;获取模块202当检测到启动游戏时,获取所述游戏中的虚拟人物模型;模型调整模块203根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型;替换模块204将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。所述游戏实现装置可以将现实人物的人体模型结合到游戏中,使得游戏中的人物模型更逼真,提高游戏的真实性。As can be seen from the above, in the game implementation device 200 provided by the embodiment of the present application, the model building module 201 builds the first human body model according to the obtained human body information; the obtaining module 202 obtains the virtual character in the game when it detects that the game is started 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; the replacement module 204 replaces the virtual character model in the game with the first human body model Two mannequins. The game realization device can integrate the human body model of a real character into the game, so that the character model in the game is more realistic and the authenticity of the game is improved.

本申请实施例还提供一种电子设备。所述电子设备可以是智能手机、平板电脑等设备。如图13所示,电子设备300包括处理器301和存储器302。其中,处理器301与存储器302电性连接。The embodiments of the present application also provide an electronic device. The electronic device may be a smart phone, a tablet computer or the like. 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 the control center of the electronic device 300, uses various interfaces and lines to connect various parts of the entire electronic device, executes the electronic device by running or calling the computer program stored in the memory 302, and calling the data stored in the memory 302. Various functions of the device and processing data, so as to carry out the 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 the processor 301 executes the instructions stored in the memory 302 . A computer program in , which implements various functions:

根据获取到的人体信息建立第一人体模型;Establish a first human body model according to the obtained human body information;

当检测到启动游戏时,获取所述游戏中的虚拟人物模型;When it is detected to start the game, obtain the virtual character model in the game;

根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的尺寸与所述虚拟人物模型的尺寸相适配;reducing or enlarging the first human body model according to the virtual character model to obtain a second human body model, the size of the second human body model is adapted to the size of the virtual character model;

将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。Replacing the avatar in the game with the second mannequin.

在一些实施例中,根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型时,处理器301执行以下步骤:In some embodiments, when the first human body model is reduced or enlarged according to the virtual character model to obtain a second human body model, the processor 301 performs the following steps:

获取所述虚拟人物模型的第一尺寸,所述第一尺寸为所述虚拟人物模型预设部位的尺寸;obtaining a first size of the virtual character model, where the first size is the size of a preset part of the virtual character model;

根据所述第一尺寸对所述第一人体模型进行缩小或放大,以得到第二人体模型,所述第二人体模型的所述预设部位的尺寸与所述第一尺寸相等。The first human body model is reduced or enlarged according to the first size to obtain a second human body model, and the size of the preset part of the second human body model is equal to the first size.

在一些实施例中,根据获取到的人体信息建立第一人体模型时,处理器301执行以下步骤:In some embodiments, when establishing the first human body model according to the acquired human body information, the processor 301 performs the following steps:

多次获取人体的全身图像;Acquire whole-body images of the human body multiple times;

分别对每一幅所述全身图像进行识别,以识别出所述人体的多个部位以及每个所述部位的尺寸;Recognizing each of the whole body images separately to identify multiple parts of the human body and the size of each of the parts;

根据所述多个部位以及每个所述部位的尺寸建立第一人体模型。A first human body model is established from the plurality of parts and the size of each of the parts.

在一些实施例中,根据获取到的人体信息建立第一人体模型之后,处理器301还执行以下步骤:In some embodiments, after establishing the first human body model according to the acquired human body information, the processor 301 further performs the following steps:

获取所述人体的性别信息;Obtain the gender information of the human body;

根据所述性别信息获取预设装饰件;obtaining a preset decorative piece according to the gender information;

将所述装饰件添加至所述第一人体模型。The trim is added to the first mannequin.

在一些实施例中,将所述游戏中的所述虚拟人物模型替换为所述第二人体模型之后,处理器301还执行以下步骤:In some embodiments, after replacing the virtual character model in the game with the second human body model, the processor 301 further performs the following steps:

获取所述游戏中对所述虚拟人物模型的控制指令;obtaining the control instructions 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 may be used to store computer programs and data. The computer program stored in the memory 302 contains instructions executable in the processor. A computer program can be composed of various functional modules. The processor 301 executes various functional applications and data processing by calling the 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 supply 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 supply 309 respectively.

射频电路303用于收发射频信号,以通过无线通信与网络设备或其他电子设备进行通信。The radio frequency circuit 303 is used to send and receive radio frequency signals to communicate with network equipment or other electronic equipment through wireless communication.

显示屏304可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 304 may be used to display information entered by or provided to the user and various graphical user interfaces of the electronic device, which may consist 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可以包括指纹识别模组。Input unit 306 may be used to receive input numbers, character information, or user characteristic information (eg, fingerprints), and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control. Wherein, the input unit 306 may include a fingerprint identification module.

音频电路307可通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 307 can provide an audio interface between the user and the electronic device through speakers and microphones.

传感器308用于采集外部环境信息。传感器308可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。The sensor 308 is used to collect external environment information. The sensor 308 may include one or more of an ambient brightness sensor, an acceleration sensor, a gyroscope, and the like.

电源309用于给电子设备300的各个部件供电。在一些实施例中,电源309可以通过电源管理系统与处理器301逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。Power supply 309 is used to power various components of electronic device 300 . In some embodiments, the power supply 309 may be logically connected to the processor 301 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption 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, which will not be repeated here.

由上可知,本申请实施例提供了一种电子设备,所述电子设备执行以下步骤:根据获取到的人体信息建立第一人体模型;当检测到启动游戏时,获取所述游戏中的虚拟人物模型;根据所述虚拟人物模型对所述第一人体模型进行缩小或放大,以得到第二人体模型;将所述游戏中的所述虚拟人物模型替换为所述第二人体模型。所述电子设备可以将现实人物的人体模型结合到游戏中,使得游戏中的人物模型更逼真,提高游戏的真实性。As can be seen from the above, the embodiment of the present application provides an electronic device, and the electronic device performs the following steps: establishing a first human body model according to the obtained human body information; when it is detected to start a game, obtain the virtual character in the game model; reduce or enlarge the first human body model according to the virtual character model to obtain a second human body model; replace the virtual character model in the game with the second human body model. The electronic device can incorporate the human body model of a real character into the game, so that the character model in the game is more realistic and the authenticity of the game is improved.

本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,所述计算机执行上述任一实施例所述的游戏实现方法。Embodiments of the present application further provide a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the game implementation method described in any of the foregoing embodiments.

需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机程序来指令相关的硬件来完成,所述计算机程序可以存储于计算机可读存储介质中,所述存储介质可以包括但不限于:只读存储器(ROM,Read OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a computer program, 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, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

以上对本申请实施例所提供的游戏实现方法、装置、存储介质及电子设备进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The game implementation method, device, storage medium, and electronic device provided by the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described herein using specific examples, and the descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for those skilled in the art, according to the Thoughts, there will be changes in specific embodiments and application scopes. To sum up, the contents of this specification should not be construed as limitations on the present application.

Claims (8)

1. A game implementation method, comprising:
establishing a first human body model according to the acquired human body information, wherein the first human body model comprises all parts of a human body;
when detecting that a game is started, acquiring a virtual character model in the game;
selecting a reference part on the virtual human model, acquiring a first size of the reference part, and reducing or amplifying each part of the first human model according to the first size to obtain a second human model, wherein the size of a preset part of the second human model is equal to the first size;
and replacing the virtual character model in the game with the second human body model.
2. The game implementation method of claim 1, wherein the step of establishing the first human body model according to the acquired human body information comprises:
acquiring a whole body image of a human body for multiple times;
respectively identifying each whole-body image to identify a plurality of parts of the human body and the size of each part;
and establishing a first human body model according to the plurality of parts and the size of each part.
3. The game implementation method according to any one of claims 1 to 2, wherein after the step of establishing the first human body model according to the acquired human body information, the method further includes:
acquiring gender information of the human body;
acquiring a preset decoration part according to the gender information;
adding the trim piece to the first mannequin.
4. A game implementation method according to any one of claims 1 to 2, wherein the step of replacing the virtual character model in the game with the second human body model further comprises:
acquiring a control instruction of the virtual character model in the game;
and controlling the second human body model according to the control instruction.
5. A game-realization apparatus, comprising:
the model establishing module is used for establishing a first human body model according to the obtained human body information, wherein the first human body model comprises all parts of a human body;
the acquisition module is used for acquiring a virtual character model in a game when the game is detected to be started;
the model adjusting module is used for selecting a reference part on the virtual human model, acquiring a first size of the reference part, and reducing or amplifying each part of the first human model according to the first size to obtain a second human model, wherein the size of a preset part of the second human model is equal to the first size;
and the replacing model is used for replacing the virtual character model in the game with the second human model.
6. A game-realization apparatus as claimed in claim 5, wherein the model-building module comprises:
the second acquisition submodule is used for acquiring the whole body image of the human body for multiple times;
the identification module is used for respectively identifying each whole-body image so as to identify a plurality of parts of the human body and the size of each part;
and the model establishing sub-module is used for establishing a first human body model according to the plurality of parts and the size of each part.
7. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute a game implementation method of any one of claims 1 to 4.
8. An electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the game implementation method according to any one of claims 1 to 4 by calling the computer program stored in the memory.
CN201810254611.7A 2018-03-26 2018-03-26 Game implementation method and device, storage medium and electronic equipment Active CN108525307B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN108525307A CN108525307A (en) 2018-09-14
CN108525307B true CN108525307B (en) 2020-03-10

Family

ID=63484739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810254611.7A Active CN108525307B (en) 2018-03-26 2018-03-26 Game implementation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108525307B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110613935A (en) * 2019-10-21 2019-12-27 网易(杭州)网络有限公司 Game data processing method and device and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4979358B2 (en) * 2006-12-06 2012-07-18 株式会社リコー Image processing apparatus, image processing method, program, and storage medium
JP5603452B1 (en) * 2013-04-11 2014-10-08 株式会社スクウェア・エニックス Video game processing apparatus and video game processing program
US9508197B2 (en) * 2013-11-01 2016-11-29 Microsoft Technology Licensing, Llc Generating an avatar from real time image data
CN105447480A (en) * 2015-12-30 2016-03-30 吉林纪元时空动漫游戏科技集团股份有限公司 Face recognition game interactive system
CN106823375A (en) * 2017-02-15 2017-06-13 成都艾维拓思科技有限公司 Method, apparatus and system that game dress ornament updates
CN107123165A (en) * 2017-05-31 2017-09-01 合肥视尔文化创意有限公司 A kind of method for copying synthesis game role
CN107469355A (en) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 Game character image creation method and device, terminal equipment

Also Published As

Publication number Publication date
CN108525307A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN112156464B (en) Two-dimensional image display method, device and equipment of virtual object and storage medium
CN113101652A (en) Information display method, device, computer equipment and storage medium
CN108525306B (en) Game realization method, device, storage medium and electronic device
US11109108B2 (en) Information processing device
CN111603771B (en) Animation generation method, device, equipment and medium
CN108876878B (en) Head portrait generation method and device
CN112870705B (en) Display method, device, equipment and medium of game settlement interface
KR102641797B1 (en) Method, device, terminal and storage medium for previewing in-game actions in a non-game environment
CN112007362B (en) Display control method, device, storage medium and equipment in virtual world
JP7547646B2 (en) Contact information display method, device, electronic device, and computer program
CN113426129B (en) Method, device, terminal and storage medium for adjusting appearance of custom roles
CN110420464B (en) Method and device for determining virtual pet image parameters and readable storage medium
US20170246534A1 (en) System and Method for Enhanced Immersion Gaming Room
CN108525307B (en) Game implementation method and device, storage medium and electronic equipment
CN115193043B (en) A method, device, computer equipment and storage medium for sending game information
CN115040867B (en) Game card control method, device, computer equipment and storage medium
CN113413593B (en) Game picture display method and device, computer equipment and storage medium
TWI729323B (en) Interactive gamimg system
JP2022010247A (en) Program, terminal and game system
CN114053707B (en) Virtual trace display method, device, equipment, medium and computer program product
US20240390806A1 (en) Using gamer heart rate streams to identify game video highlights
JP6999726B2 (en) Programs, terminals, and game systems
CN113713371B (en) Music synthesis method, device, equipment and medium
WO2024077437A1 (en) Wallpaper display method and apparatus, and device, storage medium and program product
CN118341075A (en) Interaction method and device based on virtual object, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant