Game scene building control method and device, and electronic device
Patent Information
- Application Number
- CN202211559314.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-06
- Publication Date
- 2026-09-29
- Estimated Expiration
- 2042-12-06
AI Technical Summary
然而,该方式需要玩家逐帧学习,效率较低,玩家体验较差
[0009]上述一种游戏中场景搭建控制方法、装置及电子设备,响应于图像输入操作,在图形用户界面中显示场景图像;其中,场景图像包括:在目标游戏中录制的视频图像或者拍摄的静态图像;响应针对场景图像的对象选中操作,在场景图像中确定目标图像区域,以及针对目标图像区域的对象识别结果;对象识别结果中包括:目标图像区域中显示的目标场景对象;响应于场景搭建操作,在图形用户界面中显示搭建场景,在搭建场景中生成目标场景对象。该方式提高了玩家学习搭建场景的效率,提高了玩家的游戏体验。
Smart Images

Figure CN116212368B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of game interaction technology, and more specifically, to a method, device, and electronic device for controlling the construction of game scenes. Background Technology
[0002] In some open-world games, materials such as bricks, grass, and furniture are provided for players to build structures. Because building structures is relatively difficult, players often learn by watching construction videos. However, this method requires players to learn frame by frame, which is inefficient and results in a poor player experience. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a method, device and electronic device for controlling scene construction in games, so as to improve the efficiency of players in learning to build scene objects such as buildings and improve the players' gaming experience.
[0004] In a first aspect, embodiments of the present invention provide a method for controlling scene construction in a game, which provides a graphical user interface through a terminal device; the method includes: displaying a scene image in the graphical user interface in response to an image input operation; wherein the scene image includes: a video image recorded in a target game or a still image captured; determining a target image region in the scene image and an object recognition result for the target image region in response to an object selection operation on the scene image; the object recognition result includes: a target scene object displayed in the target image region; and displaying a constructed scene in the graphical user interface in response to a scene construction operation, and generating a target scene object in the constructed scene.
[0005] Secondly, embodiments of the present invention provide a scene building control device for a game, which provides a graphical user interface through a terminal device; the device includes: a scene image display module, used to display a scene image in the graphical user interface in response to an image input operation; wherein the scene image includes: a video image recorded in the target game or a still image captured; a target scene object determination module, used to determine a target image region in the scene image in response to an object selection operation on the scene image, and an object recognition result for the target image region; the object recognition result includes: the target scene object displayed in the target image region; and a target scene object building module, used to display the built scene in the graphical user interface in response to a scene building operation, and generate the target scene object in the built scene.
[0006] Thirdly, embodiments of the present invention provide an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-described game scene building control method.
[0007] Fourthly, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to implement the above-described game scene building control method.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The aforementioned method, apparatus, and electronic device for controlling scene building in a game, in response to an image input operation, displays a scene image in a graphical user interface; wherein the scene image includes: a video image recorded in the target game or a still image captured; in response to an object selection operation on the scene image, a target image region is determined in the scene image, and an object recognition result is obtained for the target image region; the object recognition result includes: the target scene object displayed in the target image region; in response to a scene building operation, the scene being built is displayed in the graphical user interface, and the target scene object is generated in the scene being built. This method improves the efficiency of players learning to build scenes and enhances the player's gaming experience.
[0010] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0011] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0012] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0013] Figure 1 A flowchart of a game scene construction and control method provided in an embodiment of the present invention;
[0014] Figure 2 This is a schematic diagram of a graphical user interface for displaying scene images provided in an embodiment of the present invention;
[0015] Figure 3 A schematic diagram of a graphical user interface for displaying building materials for a house, provided as an embodiment of the present invention;
[0016] Figure 4 A graphical user interface diagram illustrating a display of building construction materials and a "view construction method" control provided in an embodiment of the present invention;
[0017] Figure 5 A schematic diagram of a setup guide page provided in an embodiment of the present invention;
[0018] Figure 6 This is a schematic diagram of a game scene building control device provided in an embodiment of the present invention;
[0019] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] In some open-world games, materials such as bricks, grass, and furniture are provided for players to build scenes, including houses, libraries, and schools. When building scenes, beginners often learn by watching in-game scene-building videos. However, this process involves following the video frame by frame, which is inefficient and results in a low degree of accuracy in recreating the original scene.
[0022] Based on this, the present invention provides a game scene building control method, device and electronic device, which can be applied to various game scenes that require scene building.
[0023] The game scene construction control method disclosed in one embodiment of the present invention can run on a local terminal device or a server. When the game scene construction control method runs on a server, it can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0024] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program's execution and the game screen presentation are separated. The storage and execution of the game scene construction and control methods are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0025] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0026] In one possible implementation, embodiments of the present invention provide a method for controlling the construction of a scene in a game, providing a graphical user interface through a terminal device. The terminal device can be either the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. Figure 1 As shown, this method includes the following steps:
[0027] Step S102: In response to the image input operation, display a scene image in the graphical user interface; wherein the scene image includes: a video image recorded in the target game or a still image captured.
[0028] The image input operation described above could be a static image or video image displayed after the player opens the target game software on their terminal device; or it could be a control in the graphical user interface's operation area for loading image files, which, when clicked by the player, loads a scene image into the game system. Specific settings can be configured according to requirements and are not limited here.
[0029] The aforementioned scene images are typically video recordings or still images taken by other players during the scene building process in the target game. They can also be screenshots of user interfaces displaying scene objects from the target game. These scene images usually include one or more scene objects that can be built within the target game.
[0030] Step S104: In response to the object selection operation for the scene image, determine the target image region in the scene image and the object recognition result for the target image region; the object recognition result includes: the target scene object displayed in the target image region.
[0031] The object selection operation described above for the scene image can be either to select an image area in the scene image that displays the target scene object, thus using that image area as the target image area; or it can be to click on the display position of the target scene object in the scene image, and the game system can expand the area based on the clicked position until an image area displaying the target scene object is obtained as the target image area. The specific settings can be configured according to requirements and are not limited here.
[0032] After identifying the target image region in the scene image, image recognition can be performed on that region to identify the outline of the target scene object. The building materials provided in the target game are then matched with the image of the target scene object's outline to determine the building materials used by the target scene object, as well as the quantity used. In addition to marking the identified target scene object in the scene image, the building materials used by the target scene object can also be displayed. The above image recognition process employs various methods, such as pixel-based recognition or recognition based on pre-trained neural networks or deep learning models.
[0033] When performing pixel-based image recognition, since different building materials in the target game typically have different colors, textures, and sizes, the target image area can be divided into multiple sub-image areas. Then, based on the pixel parameters of each sub-image area, the sub-image area is matched with the building materials in the target game for attributes such as color and texture, thereby determining the corresponding building material and its displayed area. Based on the displayed areas occupied by the building materials in multiple sub-image areas, the outline of the target scene object can be determined. Furthermore, based on the image areas corresponding to different building materials in the sub-image areas and the size of the building materials, the quantity of building materials in each sub-image area can be determined. Therefore, based on the building materials used in the target scene object and the quantity of those materials, the type of target scene object, such as grass, houses, or swimming pools, can be determined.
[0034] When using a neural network for image recognition, an initial neural network needs to be established based on the required functionality. Common image recognition neural networks such as backpropagation (BP) neural networks can be used. After establishing the initial neural network, it needs to be trained with training data. This training data typically consists of images showing scene objects constructed using building materials from the target game, labeled with parameters such as the type and quantity of the building materials used, and their positions within the scene objects. After the initial neural network performs image recognition on the images, the recognition results are obtained. Based on the recognition results and the labeled information, a loss value is calculated, and the neural network parameters are adjusted based on the loss value, resulting in a trained neural network. After training the neural network, when the target image region is input into the neural network, the neural network can output information about the building materials of the target scene object in the target image region, as well as the contour information of the target scene object within the target image region.
[0035] Step S106: In response to the scene building operation, the scene being built is displayed in the graphical user interface, and the target scene object is generated in the scene being built.
[0036] The scene building operation described above can be a double-click or long-press operation on the target image area displayed in the scene screen. In specific implementation, after recognizing the target scene object in the target image area, controls for building the target scene object can be displayed in the graphical user interface. At this time, the scene building operation described above can be a click, double-click, or long-press operation on the control.
[0037] After completing the scene building operation, you will be redirected to the built scene, which will be displayed in the graphical user interface. This built scene is the environment in the target game where buildings and decorations are constructed, and it is usually the environment where the virtual objects controlled by the player are located. This scene usually has a certain theme, such as a farm scene or a forest scene, which can be set according to the needs of the game and is not limited here.
[0038] After displaying the construction scene, the target scene object needs to be generated within the construction scene based on construction parameters such as the type and quantity of construction materials corresponding to the target scene object, as well as their positions within the target scene object. During this process, the 3D model of the target scene object can be displayed directly at the designated location within the construction scene; alternatively, a 3D perspective model of the target scene object can be displayed first within the construction scene, followed by an animation showing the construction materials being sequentially filled into that perspective model. This allows players to easily learn how to build the target scene object.
[0039] The aforementioned method for controlling scene construction in a game, in response to an image input operation, displays a scene image in a graphical user interface. The scene image includes: a video image recorded in the target game or a still image captured. In response to an object selection operation on the scene image, a target image region is determined within the scene image, along with object recognition results for that region. The object recognition results include: the target scene object displayed within the target image region. In response to a scene construction operation, the method displays the constructed scene in the graphical user interface and generates the target scene object within the constructed scene. This method improves the efficiency of players learning scene construction and enhances their gaming experience.
[0040] The following embodiments provide a specific way to display scene images in a graphical user interface in response to image input operations.
[0041] In practical implementation, the aforementioned scene images can be video images recorded in the target game. After the player opens the game software on their terminal device, they can search for video data of other players building scenes in the target game, either within the game system or online. When the player views the video data by clicking a link or similar means, in response to the viewing operation of video data recorded in the target game, the video data is played, that is, the video frames in the video data are displayed sequentially according to the playback order of the video frames. At the same time, an image selection control is displayed on the graphical user interface. This control is a shortcut control provided by the game system, such as... Figure 2 As shown. After the player performs a touch operation such as clicking or long-pressing on the image selection control, the system responds to the specified touch operation applied to the image selection control and obtains a copy image corresponding to the current video frame displayed in the graphical user interface. Specifically, it can directly copy the current video frame displayed in the graphical user interface, or take a screenshot of the current graphical user interface to obtain a copy image; the copy image is then identified as the scene image and displayed in the graphical user interface.
[0042] The following embodiments provide a method for determining a specific target image region in a scene image in response to an object selection operation in a scene image.
[0043] A scene image may contain multiple scene objects. The target image region corresponding to a specific scene object can be selected by editing the scene image. Specifically, in response to an editing operation on the scene image, the image region within the scene image corresponding to the area operated on by the editing operation is determined as the target image region. The aforementioned editing operation can be a general image cropping or trimming operation.
[0044] After identifying the target image region in the scene image, image recognition processing is required to identify the target scene objects within the region, such as houses, grass, and plants, and to identify the construction parameters of these objects. These construction parameters can be the three-view or perspective views of the target scene objects, or the attribute information of the construction materials, or both. The attribute information of the construction materials includes type parameters, material identification, and / or the quantity used.
[0045] After obtaining the object recognition results for the target image region, the construction parameters of the target scene object and the corresponding construction controls can be displayed at a specified location within the target image region. For example... Figure 3 As shown, in Figure 3 The system displays the building materials for the house, including 100 bricks and 4 [items / materials]. Alternatively, it can only display the building controls corresponding to the target scene object. After the player clicks on a building control, they are redirected to the building details page, which displays the three views of the target scene object and its building parameters.
[0046] The following embodiments provide a specific method for displaying a built scene in a graphical user interface and generating a target scene object in the built scene in response to a scene building operation.
[0047] After identifying the construction parameters of the target scene object, such as the three views of the target scene object and / or the attribute information of the construction materials, the system can respond to the scene construction operation, display the construction scene in the graphical user interface, and generate the corresponding three-dimensional model of the target scene object in the construction scene based on the construction parameters of the target scene object.
[0048] When the scene image displays the building controls corresponding to the target scene object, the player can select the building controls corresponding to the target scene object by clicking, long-pressing, or other operations. In response to the selection operation of the building controls corresponding to the target scene object, the building scene is displayed in the graphical user interface, and a 3D model of the target scene object is generated in the building scene.
[0049] The aforementioned terminal device controls the first game account, which can select the construction operation of the target scene object and choose to save this data. In response to the save operation of the construction parameters of the target scene object, the construction parameters of the target scene object can be saved to the cloud storage space of the first game account.
[0050] This invention also provides another method for controlling scene construction in games. This method... Figure 1 This method is implemented based on the method shown. It can be implemented in the following ways:
[0051] 1. After opening the game software on their terminal device and then viewing the scene construction video, players can select a specific frame in the video corresponding to a particular game frame. The game system identifies the selected image, along with the materials used to construct that building, and displays them on the screen, such as... Figure 4 As shown.
[0052] In addition, the screen can display a "View Building Instructions" control. When the player clicks this control, the graphical user interface displays a building guide page. The building guide page displays the building structure, such as the building's three-view diagram, etc. Figure 5 As shown. When the smallest atomic particle in the game is a cube, it can be disassembled into different cubes according to the size and proportion of the selected content. The number and shape of the squares in the front view, left view, and top view are restored according to the number of cubes, so as to realize the shape of the three views in 2.5D, thereby informing the player of the building method.
[0053] 2. The game system can generate 3D model graphics based on the three-view drawing and upload the graphic data to the player's cloud game. The player can then build according to this data package.
[0054] 3. To prevent original building structures from being used multiple times in this way, players can upload the built scene data to the blockchain when construction is complete.
[0055] The above methods can improve the efficiency of players learning scene construction and enhance their gaming experience.
[0056] For the above method embodiments, see Figure 6 The illustrated game scene building control device provides a graphical user interface via a terminal device; the device includes:
[0057] The scene image display module 602 is used to display scene images in a graphical user interface in response to an image input operation; wherein, the scene images include: video images recorded in the target game or still images captured by camera;
[0058] The target scene object determination module 604 is used to respond to an object selection operation on a scene image, determine a target image region in the scene image, and obtain object recognition results for the target image region; the object recognition results include: the target scene object displayed in the target image region;
[0059] The target scene object building module 606 is used to respond to scene building operations, display the built scene in the graphical user interface, and generate the target scene object in the built scene.
[0060] The aforementioned scene building control device in a game, in response to an image input operation, displays a scene image in a graphical user interface; wherein the scene image includes: a video image recorded in the target game or a still image captured; in response to an object selection operation on the scene image, it determines a target image region in the scene image, and obtains an object recognition result for the target image region; the object recognition result includes: the target scene object displayed in the target image region; in response to a scene building operation, it displays the built scene in the graphical user interface and generates the target scene object in the built scene. This method improves the efficiency of players learning to build scenes and enhances the player's gaming experience.
[0061] The aforementioned scene image includes video images recorded in the target game; the scene image display module is also used to: in response to a viewing operation of video data recorded in the target game, sequentially display the video frames in the video data according to the playback order of the video frames, and the image selection control; in response to a specified touch operation applied to the image selection control, obtain a copied image corresponding to the current video frame displayed in the graphical user interface; determine the copied image as the scene image, and display the scene image in the graphical user interface.
[0062] The aforementioned target scene object determination module is also used to: respond to an editing operation on a scene image and determine the image region in the scene image corresponding to the operation area of the editing operation as the target image region.
[0063] The aforementioned target scene object determination module is also used to: respond to an object selection operation on a scene image, determine a target image region in the scene image; perform image recognition processing on the target image region to identify the target scene object in the target image region, as well as the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used.
[0064] The aforementioned device also includes a construction parameter display module, used to display the construction parameters of the target scene object and the construction controls corresponding to the target scene object at a specified location in the target image area.
[0065] The above scene image displays the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used; the target scene object construction module is also used to: display the construction scene in the graphical user interface in response to the scene construction operation, and generate a three-dimensional model corresponding to the target scene object in the construction scene based on the construction parameters of the target scene object.
[0066] The above scene image displays the building controls corresponding to the target scene object; the target scene object building module is also used to: in response to the selection operation of the building controls corresponding to the target scene object, display the building scene in the graphical user interface, and generate the three-dimensional model corresponding to the target scene object in the building scene.
[0067] The aforementioned scene image displays the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used; the terminal device controls the first game account; the aforementioned device also includes a storage module, used to: in response to a save operation for the construction parameters of the target scene object, save the construction parameters of the target scene object to the cloud storage space of the first game account.
[0068] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the above-mentioned game scene building control method, for example:
[0069] In response to an image input operation, a scene image is displayed in the graphical user interface; wherein the scene image includes: a video image recorded in the target game or a still image captured; in response to an object selection operation on the scene image, a target image region is determined in the scene image, and an object recognition result is obtained for the target image region; the object recognition result includes: the target scene object displayed in the target image region; in response to a scene building operation, a scene is displayed in the graphical user interface, and a target scene object is generated in the scene being built.
[0070] The above methods improve the efficiency of players learning to build scenes and enhance their gaming experience.
[0071] Optionally, the aforementioned scene image includes video images recorded in the target game; the step of displaying the scene image in the graphical user interface in response to an image input operation includes: in response to a viewing operation of video data recorded in the target game, sequentially displaying video frames in the video data according to the playback order of the video frames, and an image selection control; in response to a specified touch operation applied to the image selection control, obtaining a copied image corresponding to the current video frame displayed in the graphical user interface; determining the copied image as the scene image, and displaying the scene image in the graphical user interface.
[0072] Optionally, the step of determining the target image region in the scene image in response to the object selection operation of the scene image includes: in response to the editing operation of the scene image, determining the image region in the scene image corresponding to the operation area of the editing operation as the target image region.
[0073] Optionally, the steps of responding to the object selection operation in the scene image, determining the target image region in the scene image, and the object recognition result for the target image region include: responding to the object selection operation in the scene image, determining the target image region in the scene image; performing image recognition processing on the target image region to identify the target scene object in the target image region, and the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used.
[0074] Optionally, after determining the target image region in the scene image and the object recognition result for the target image region, the above method further includes: displaying the construction parameters of the target scene object and the construction control corresponding to the target scene object at a specified position in the target image region.
[0075] Optionally, the above scene image displays the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used; the steps of displaying the construction scene in the graphical user interface in response to the scene construction operation and generating the target scene object in the construction scene include: displaying the construction scene in the graphical user interface in response to the scene construction operation, and generating a three-dimensional model corresponding to the target scene object in the construction scene based on the construction parameters of the target scene object.
[0076] Optionally, the above scene image displays the building controls corresponding to the target scene object; in response to the scene building operation, the steps of displaying the building scene in the graphical user interface and generating the target scene object in the building scene include: in response to the selection operation of the building controls corresponding to the target scene object, displaying the building scene in the graphical user interface and generating the three-dimensional model corresponding to the target scene object in the building scene.
[0077] Optionally, the aforementioned scene image displays the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used; the terminal device controls the first game account; in response to the object selection operation for the scene image, after determining the target image area in the scene image and the object recognition result for the target image area, the method further includes: in response to the save operation for the construction parameters of the target scene object, saving the construction parameters of the target scene object to the cloud storage space of the first game account.
[0078] See Figure 7As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-mentioned scene building control method in the game.
[0079] Furthermore, Figure 7 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.
[0080] The memory 101 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0081] Processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 100 or by instructions in software form. Processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101, and the processor 100 reads the information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0082] This embodiment also provides a machine-readable storage medium that stores machine-executable instructions. When the machine-executable instructions are called and executed by the processor, the machine-executable instructions cause the processor to implement the above-mentioned scene building control method in the game.
[0083] The present invention provides a method, apparatus, and electronic device for controlling scene construction in a game, comprising a computer-readable storage medium storing program code. The program code includes instructions that can be used to execute the methods described in the preceding method embodiments, for example:
[0084] In response to an image input operation, a scene image is displayed in the graphical user interface; wherein the scene image includes: a video image recorded in the target game or a still image captured; in response to an object selection operation on the scene image, a target image region is determined in the scene image, and an object recognition result is obtained for the target image region; the object recognition result includes: the target scene object displayed in the target image region; in response to a scene building operation, a scene is displayed in the graphical user interface, and a target scene object is generated in the scene being built.
[0085] The above methods improve the efficiency of players learning to build scenes and enhance their gaming experience.
[0086] Optionally, the aforementioned scene image includes video images recorded in the target game; the step of displaying the scene image in the graphical user interface in response to an image input operation includes: in response to a viewing operation of video data recorded in the target game, sequentially displaying video frames in the video data according to the playback order of the video frames, and an image selection control; in response to a specified touch operation applied to the image selection control, obtaining a copied image corresponding to the current video frame displayed in the graphical user interface; determining the copied image as the scene image, and displaying the scene image in the graphical user interface.
[0087] Optionally, the step of determining the target image region in the scene image in response to the object selection operation of the scene image includes: in response to the editing operation of the scene image, determining the image region in the scene image corresponding to the operation area of the editing operation as the target image region.
[0088] Optionally, the steps of responding to the object selection operation in the scene image, determining the target image region in the scene image, and the object recognition result for the target image region include: responding to the object selection operation in the scene image, determining the target image region in the scene image; performing image recognition processing on the target image region to identify the target scene object in the target image region, and the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used.
[0089] Optionally, after determining the target image region in the scene image and the object recognition result for the target image region, the above method further includes: displaying the construction parameters of the target scene object and the construction control corresponding to the target scene object at a specified position in the target image region.
[0090] Optionally, the above scene image displays the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used; the steps of displaying the construction scene in the graphical user interface in response to the scene construction operation and generating the target scene object in the construction scene include: displaying the construction scene in the graphical user interface in response to the scene construction operation, and generating a three-dimensional model corresponding to the target scene object in the construction scene based on the construction parameters of the target scene object.
[0091] Optionally, the above scene image displays the building controls corresponding to the target scene object; in response to the scene building operation, the steps of displaying the building scene in the graphical user interface and generating the target scene object in the building scene include: in response to the selection operation of the building controls corresponding to the target scene object, displaying the building scene in the graphical user interface and generating the three-dimensional model corresponding to the target scene object in the building scene.
[0092] Optionally, the aforementioned scene image displays the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used; the terminal device controls the first game account; in response to the object selection operation for the scene image, after determining the target image area in the scene image and the object recognition result for the target image area, the method further includes: in response to the save operation for the construction parameters of the target scene object, saving the construction parameters of the target scene object to the cloud storage space of the first game account.
[0093] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0094] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0095] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0096] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0097] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for controlling scene construction in a game, characterized in that, The method includes providing a graphical user interface via a terminal device; the method includes: In response to an image input operation, a scene image is displayed in the graphical user interface; wherein the scene image includes: a video image recorded in the target game or a still image captured by camera; In response to an object selection operation on the scene image, a target image region is determined in the scene image, and an object recognition result is obtained for the target image region; the object recognition result includes: the target scene object displayed in the target image region; In response to the scene building operation, the built scene is displayed in the graphical user interface, and the target scene object is generated in the built scene; The scene image displays the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used; The steps of displaying the constructed scene in the graphical user interface in response to the scene construction operation, and generating the target scene object in the constructed scene, include: In response to the scene building operation, the built scene is displayed in the graphical user interface, and a 3D model corresponding to the target scene object is generated in the built scene based on the building parameters of the target scene object; The steps of responding to an object selection operation on the scene image, determining a target image region in the scene image, and determining an object recognition result for the target image region include: In response to an object selection operation on the scene image, a target image region is determined in the scene image; Image recognition processing is performed on the target image region to identify the target scene object in the target image region and the construction parameters of the target scene object.
2. The method according to claim 1, characterized in that, The scene images include video images recorded in the target game; The step of displaying a scene image in the graphical user interface in response to an image input operation includes: In response to a viewing operation of video data recorded in the target game, the video frames in the video data are displayed sequentially according to the playback order of the video frames, along with an image selection control; In response to a specified touch operation applied to the image selection control, a copied image corresponding to the current video frame displayed in the graphical user interface is obtained; The copied image is identified as a scene image, and the scene image is displayed in the graphical user interface.
3. The method according to claim 1, characterized in that, The step of determining a target image region in the scene image in response to an object selection operation on the scene image includes: In response to an editing operation on the scene image, the image region in the scene image corresponding to the operation area of the editing operation is determined as the target image region.
4. The method according to claim 1, characterized in that, In response to an object selection operation on the scene image, after determining a target image region in the scene image and an object recognition result for the target image region, the method further includes: At a designated location within the target image area, the construction parameters of the target scene object and the corresponding construction controls for the target scene object are displayed.
5. The method according to claim 1, characterized in that, The scene image displays the building controls corresponding to the target scene object; The steps of displaying the constructed scene in the graphical user interface in response to the scene construction operation, and generating the target scene object in the constructed scene, include: In response to the selection operation of the building control corresponding to the target scene object, the building scene is displayed in the graphical user interface, and a three-dimensional model corresponding to the target scene object is generated in the building scene.
6. The method according to claim 1, characterized in that, The scene image displays the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used; the terminal device controls the first game account; In response to an object selection operation on the scene image, after determining a target image region in the scene image and an object recognition result for the target image region, the method further includes: In response to the save operation for the construction parameters of the target scene object, the construction parameters of the target scene object are saved to the cloud storage space of the first game account.
7. A scene construction control device for games, characterized in that, A graphical user interface is provided via a terminal device; the device includes: A scene image display module is used to display a scene image in the graphical user interface in response to an image input operation; wherein, the scene image includes: a video image recorded in the target game or a still image captured by camera; The target scene object determination module is used to respond to an object selection operation on the scene image, determine a target image region in the scene image, and determine the object recognition result for the target image region; the object recognition result includes: the target scene object displayed in the target image region; The target scene object building module is used to respond to the scene building operation by displaying the built scene in the graphical user interface and generating the target scene object in the built scene; The scene image displays the construction parameters of the target scene object; the construction parameters include the three views of the target scene object and / or the attribute information of the construction materials; the attribute information includes type parameters, material identification and / or quantity used; The target scene object construction module is also used for: In response to the scene building operation, the built scene is displayed in the graphical user interface, and a 3D model corresponding to the target scene object is generated in the built scene based on the building parameters of the target scene object; The target scene object determination module is also used for: In response to an object selection operation on the scene image, a target image region is determined in the scene image; Image recognition processing is performed on the target image region to identify the target scene object in the target image region and the construction parameters of the target scene object.
8. An electronic device, characterized in that, The system includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the game scene building control method according to any one of claims 1-6.
9. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the game scene building control method according to any one of claims 1-6.
Citation Information
Patent Citations
VR scene building method and system
CN108074286A
Processing method and device for scenes in game, and electronic equipment
CN113069759A