Game scene component generation method and apparatus, and storage medium and electronic device
By responding to trigger conditions and prompt information in the game program, the game scene component combination is quickly generated, which solves the problem of inefficient editing of game scene components, and realizes efficient editing and diversified combinations, which are suitable for lightweight scenarios.
Patent Information
- Application Number
- PCT/CN2024/134945
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-20
- Filing Date
- 2024-11-27
- Publication Date
- 2025-06-26
AI Technical Summary
The editing of game scene components is inefficient, resulting in high labor and time costs.
By responding to the trigger condition in the game program, determining the information of the scene component combination based on the prompt information, and providing corresponding controls, the user can quickly generate the scene component combination in the game editing scene through triggering operations.
It improves the editing efficiency of game scene components, reduces labor and time costs, breaks through the limitations of the existing scene component library, and generates a diverse set of scene components, suitable for lightweight scenarios such as mobile games.
Smart Images

Figure CN2024134945_26062025_PF_FP_ABST
Abstract
Description
Game scene component generation method, device, storage medium and electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application filed on December 20, 2023, with application number 202311770775.2, entitled “Game scene component method, device, storage medium and electronic device”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of computer and game technology, and in particular to a method for generating a game scene component, a device for generating a game scene component, a computer-readable storage medium, and an electronic device. Background Art
[0004] Game scenes are usually composed of a certain number of scene components (or models). Scene components are people or objects in the game scene. Modeling and editing people or objects in the game scene is one of the main tasks in building a game scene.
[0005] Currently, modeling and editing game scenes primarily relies on manual work by game developers. For example, the process of generating a single scene component typically involves manually editing its appearance, adjusting its size and position, and rendering its colors and textures to ultimately generate the desired scene component. This approach is labor-intensive and time-consuming, resulting in low efficiency. Summary of the Invention
[0006] The present disclosure provides a game scene component generation method, a game scene component generation device, a computer-readable storage medium and an electronic device, so as to at least to some extent solve the problem of low efficiency in editing game scene components.
[0007] According to a first aspect of the present disclosure, a game scene component generation method is provided, the method comprising: in response to a trigger condition being satisfied in a game program, determining information of a first scene component combination according to first prompt information; the first scene component combination is a scene component combination to be generated corresponding to the first prompt information; the first scene component combination is composed of one or more scene components; when a game editing scene is displayed, a plurality of first scene component controls are provided, and a second scene component control corresponding to the first scene component combination is provided; the first scene component control is configured to respond to and generate a corresponding scene component in the game editing scene according to a first trigger operation; in response to a second trigger operation on the second scene component control, the first scene component combination is generated in the game editing scene according to the information of the first scene component combination.
[0008] According to a second aspect of the present disclosure, a game scene component generation device is provided, the device comprising: a scene component combination information determination module, configured to execute a response to satisfying a trigger condition in a game program, and determine information of a first scene component combination according to first prompt information; the first scene component combination is a scene component combination to be generated corresponding to the first prompt information; the first scene component combination is composed of one or more scene components; a scene component control providing module, configured to execute, when displaying a game editing scene, providing multiple first scene component controls, and providing a second scene component control corresponding to the first scene component combination; the first scene component control is configured to respond to and generate a corresponding scene component in the game editing scene according to a first trigger operation; a scene component combination generation processing module, configured to execute a response to a second trigger operation on the second scene component control, and generate the first scene component combination in the game editing scene according to information of the first scene component combination.
[0009] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the game scene component generation method and possible implementation methods thereof of the above-mentioned first aspect are implemented.
[0010] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the game scene component generation method of the above-mentioned first aspect and its possible implementation method by executing the executable instructions.
[0011] The technical solution disclosed in this disclosure has the following beneficial effects:
[0012] On the one hand, a solution for quickly and efficiently generating game scene components is provided, which can determine the information of the first scene component combination based on the first prompt information and provide the corresponding second scene component control. The user can quickly generate the first scene component combination in the game editing scene by performing a second trigger operation on the second scene component control, without the user having to perform a large amount of manual operations to edit and generate scene components, thereby reducing manpower and time costs and improving editing efficiency. On the other hand, by generating new scene components by combining existing scene components in the game program, it is possible to break through the limitations of the existing scene component library, generate a large number of diverse first scene component combinations, and enrich the game content. On the other hand, the method of combining scene components does not require the execution of a complete modeling process, which is conducive to controlling the resource size of the generated first scene component combination, thereby reducing the overhead of resources such as computing power and storage and the cost of implementing the solution, and can be applied to lightweight scenarios such as mobile games. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] FIG1 shows a system architecture diagram of one embodiment of the present exemplary embodiment;
[0014] FIG2 is a flowchart showing a method for generating a game scene component according to the present exemplary embodiment;
[0015] FIG3 is a schematic diagram showing a game editing scene and a first scene component control in one exemplary embodiment of the present invention;
[0016] FIG4 is a schematic diagram showing a setting interface of a game editing scene in this exemplary embodiment;
[0017] FIG5 is a schematic diagram showing a second scene component control according to one exemplary embodiment of the present invention;
[0018] FIG6 shows a sub-flow chart of a method for generating a game scene component according to the present exemplary embodiment;
[0019] FIG7 is a schematic diagram showing a search result corresponding to a scene component control search information in one exemplary embodiment of the present invention;
[0020] FIG8 is a schematic diagram showing one method of generating a list according to the present exemplary embodiment;
[0021] FIG9 is a schematic structural diagram of a device for generating a game scene component according to one exemplary embodiment of the present invention;
[0022] FIG. 10 is a schematic structural diagram of an electronic device according to the exemplary embodiment. DETAILED DESCRIPTION
[0023] Exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings.
[0024] The accompanying drawings are schematic illustrations of the present disclosure and are not necessarily drawn to scale. Some of the block diagrams shown in the accompanying drawings may be functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, or in hardware modules or integrated circuits, or in networks, processors or microcontrollers. The embodiments can be implemented in various forms and should not be construed as being limited to the examples set forth herein. The features, structures or characteristics described in the present disclosure may be combined in one or more embodiments in any suitable manner. In the description below, many specific details are provided to provide a full description of the embodiments of the present disclosure. However, those skilled in the art will appreciate that one or more specific details may be omitted when implementing the technical solution of the present disclosure, or that other methods, components, devices, steps, etc. may be used to replace one or more specific details.
[0025] The modeling and editing of game scene components are mainly completed manually by game developers, which requires high manpower and time costs. With the development of artificial intelligence technology, solutions for game modeling through artificial intelligence models have emerged in related technologies. For example, by inputting descriptive words into the model, the model can automatically execute the instructions of DCC (Digital Content Creation) software to build models of game scene components, etc. However, the implementation of these solutions requires a large amount of computing power and storage resources. For example, it is impossible to control the number of facets and resource size of the created scene components, resulting in excessively high implementation costs and difficulty in application in lightweight scenarios such as mobile games.
[0026] In view of one or more of the above problems, an exemplary embodiment of the present disclosure provides a method for generating a game scene component.
[0027] Figure 1 shows the system architecture of the operating environment of this exemplary embodiment. This system architecture may include a terminal device 110 and a server 120. The terminal device may be a mobile phone, tablet computer, personal computer, smart wearable device, game console, or other device. It may have a display function and be capable of displaying a graphical user interface (GUI). The GUI may include an operating system interface or an application program interface. A game program, such as a client program for an online game, is installed on the terminal device 110. When the game program runs on the terminal device 110, game editing scenes and the like may be displayed in the GUI, allowing the user to perform editing operations. The server 120 generally refers to the backend system that provides the game service in this exemplary embodiment and may be a single server or a cluster of multiple servers. A game server program is deployed on the server 120 to perform server-side game data processing. The terminal device 110 and the server 120 may be connected via a wired or wireless communication link for data transmission. The game scene component generation method in this exemplary embodiment may be executed by any one or more of the terminal device 110 and the server 120.
[0028] In one embodiment, the game scene component generation method can be implemented and executed based on a cloud interaction system. The cloud interaction system can be the system architecture described above. Various cloud applications, such as cloud gaming, can be run within 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 execution entity and the game screen presentation entity are separated. The storage and execution of the in-game control and interaction methods are completed on the cloud gaming server (such as the aforementioned server 120). The cloud gaming client (such as the aforementioned terminal device 110) is responsible for receiving and sending data and presenting the game screen. For example, the cloud gaming client can be a display device with data transmission capabilities close to the user, such as a mobile terminal, television, computer, or PDA; while the cloud gaming server in the cloud performs information processing. When playing a game or editing a game scene, the user operates the cloud gaming client to send operation instructions to the cloud gaming server. The cloud gaming server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the cloud gaming client via the network. Finally, the cloud gaming client decodes and outputs the game screen.
[0029] In one embodiment, the game scene component generation method can be implemented in a stand-alone game. No server deployment is required, and the entire game program can be installed on the terminal device 110 and the game scene component generation method can be executed.
[0030] In one embodiment, referring to FIG2 , the method for generating a game scene component may include the following steps S210 to S230:
[0031] Step S210: In response to a trigger condition being satisfied in the game program, determining information of a first scene component combination according to the first prompt information; the first scene component combination is a scene component combination to be generated corresponding to the first prompt information; the first scene component combination is composed of one or more scene components;
[0032] Step S220: When displaying a game editing scene, provide a plurality of first scene component controls and provide a second scene component control corresponding to the first scene component combination; the first scene component control is configured to respond to and generate a corresponding scene component in the game editing scene according to the first trigger operation;
[0033] Step S230, in response to the second triggering operation on the second scene component control, a first scene component combination is generated in the game editing scene according to the information of the first scene component combination.
[0034] In the method shown in Figure 2, on the one hand, a solution for quickly and efficiently generating game scene components is provided, which can determine the information of the first scene component combination based on the first prompt information and provide the corresponding second scene component control. The user can quickly generate the first scene component combination in the game editing scene by performing a second trigger operation on the second scene component control, without the user having to perform a large amount of manual operations to edit and generate scene components, thereby reducing manpower and time costs and improving editing efficiency. On the other hand, by generating new scene components by combining existing scene components in the game program, it is possible to break through the limitations of the existing scene component library, generate a large number of diverse first scene component combinations, and enrich the game content. On the other hand, the method of combining scene components does not require the execution of a complete modeling process, which is conducive to controlling the resource size of the generated first scene component combination, thereby reducing the overhead of resources such as computing power and storage and the cost of implementing the solution, and can be applied to lightweight scenarios such as mobile games.
[0035] Each step in Figure 2 is described in detail below.
[0036] Referring to Figure 2, in step S210, in response to the trigger condition being met in the game program, information of the first scene component combination is determined according to the first prompt information; the first scene component combination is the scene component combination to be generated corresponding to the first prompt information; the first scene component combination is composed of one or more scene components.
[0037] This exemplary embodiment provides a game editing function for players. The game program in step S210 can be the main game program. When the main game program is running, the user can select a specific option to enter the editor or editing interface and use the editing function. Alternatively, the game program in step S210 can be an editing program that is compatible with the main game program and can be run independently of the main game program. When the editing program is running, the user can use the editing function.
[0038] A scene component is a person or object (or part of a person or object) in a game scene, such as a building, mechanism, vehicle, or furniture. A scene component can be an object generated, used, or edited during the game editing phase and configured to generate a corresponding virtual model during the game runtime. In-game, a scene component and the corresponding virtual model typically have the same appearance, so they can be considered the same object and are not specifically distinguished herein. In a program, scene components and virtual models can be stored as different types of program objects. Virtual models can be configured with either visual or non-visual effects. That is, during the game runtime, the virtual model corresponding to a scene component can be a visible object with a specific appearance or an invisible object (e.g., a "spawn point," the initial location of a player character in the game, is a scene component with a specific size and shape, but is invisible in-game). In one embodiment, a scene component can refer to a generated or edited scene component provided in the game program, such as one pre-edited by the game developer or one edited and saved by the player. Users do not need to edit from scratch; they can directly use these scene components in the editing interface.
[0039] In this exemplary embodiment, multiple scene components can be combined into a scene component combination. For example, a block component can be combined with the circular surface of a cylindrical component to form a roller-shaped mechanism component. In this way, complex and diverse components of people or objects can be formed in the game. For ease of distinction, a single scene component can be referred to as a basic scene component. It cannot be separated and can be regarded as the smallest component unit in the game editing scene. Unless otherwise specified, the scene component mentioned in this article can refer to either a basic scene component or a scene component combination.
[0040] The game program provides a function for generating scene components based on prompt information. Prompt information is information based on natural language, such as text information, voice information, etc. For ease of explanation, the generation function can be referred to as a generator, such as an AI (artificial intelligence) generator. The trigger condition is a condition that triggers the use of the generator. The first prompt information is the prompt information used when the trigger condition is met. It can be understood that if the generator is used in other situations, the generation process can be performed according to other prompt information, such as when the generator is used in the case of searching for scene component controls as described below, the generation process can be performed according to the second prompt information. The first prompt information and the second prompt information are obtained in different ways. The first prompt information can be automatically determined by the game program, and the second prompt information can be determined based on the scene component control search information input by the user.
[0041] In this exemplary embodiment, according to the prompt information, a new scene component is generated by combining existing scene components. In other words, the scene component to be generated is a scene component combination. This article refers to the scene component combination generated according to the first prompt information as the first scene component combination, and the scene component combination generated according to the second prompt information as the second scene component combination. The first scene component combination and the second scene component combination are both composed of one or more scene components, and these scene components can be existing scene components in the game program. For ease of distinction, the scene components used to form the first scene component combination are referred to as the first target scene components, and the scene components used to form the second scene component combination are referred to as the second target scene components.
[0042] The following is an exemplary description of how to obtain the first prompt information.
[0043] In one embodiment, before determining the information of the first scene component combination according to the first prompt information, the game scene component generation method may further include the following steps:
[0044] The first prompt information is randomly generated according to preset rules.
[0045] The preset rules are restrictions on randomly generated information to ensure that the randomly generated first prompt information is descriptive of a specific person or object, and to avoid generating random information unrelated to the scene components. For example, the preset rules can be restrictions on the part of speech of keywords in the first prompt information, or on the number of words, etc. Following the preset rules, relatively standardized random information can be generated as the first prompt information.
[0046] In one embodiment, the randomly generating the first prompt information according to the preset rules may include the following steps:
[0047] randomly determining a target object type cue word from a plurality of object type cue words;
[0048] Determine a target feature dimension from the feature dimensions under the target object type corresponding to the target object type prompt word, and randomly determine a target feature prompt word from the feature prompt words of the target feature dimension;
[0049] The first prompt information is generated according to the target object type prompt word and the target feature prompt word.
[0050] Among them, the object type refers to the type of scene component generated by the prompt information, such as the object types of table, chair, sofa, cabinet, bed, etc. The object type prompt word is a word used to describe the object type, such as the name of the object type such as "table", "chair", "sofa", "cabinet", "bed", etc. For example, if scene components under the five object types of table, chair, sofa, cabinet, and bed can be generated, then five object type prompt words can be provided, and the game program randomly selects the target object type prompt word from them, which is equivalent to randomly determining that the object type of the scene component to be generated is the target object type.
[0051] In one embodiment, object types can have multiple levels, such as primary object types and secondary object types, and a primary object type can include one or more secondary object types. For example, a primary object type of chair includes secondary object types such as sun loungers, benches, and Chinese chairs. Secondary object types are further subdivided object types under a primary object type. Based on this, the target object type prompt words of each level can be determined sequentially from the lowest level to the highest level. Taking two levels as an example, the above-mentioned random determination of the target object type prompt word from multiple object type prompt words can include the following steps:
[0052] randomly determining a target first-level object type cue word from a plurality of first-level object type cue words;
[0053] If the target first-level object type corresponding to the target first-level object type prompt word includes multiple second-level object types, the target second-level object type prompt word is randomly determined from the second-level object type prompt words corresponding to the multiple second-level object types.
[0054] For example, multiple first-level object type prompts include "table," "chair," "sofa," "cabinet," and "bed." "Chair" is randomly determined as the target first-level object type prompt, i.e., the object type "item" is selected as the target first-level object type. Secondary object types under this target type include furniture, interior decoration, and lamps. A target second-level object type prompt can be randomly determined from the second-level object type prompts "sun lounge," "bench," "lounge chair," and "rocking chair." For example, "sun lounge" is randomly selected. Thus, two target object type prompts, "chair" and "sun lounge," are obtained.
[0055] If the target first-level object type corresponding to the target first-level object type prompt word includes a second-level object type, the second-level object type prompt word corresponding to the second-level object type is used as the target second-level object type prompt word.
[0056] It should be understood that the above explanation uses two levels of object types as an example. If there are three or more levels of object types, a target object type prompt word can be randomly determined at each level until the target object type prompt word at the highest level is obtained. For example, if the target second-level object type corresponding to the target second-level object type prompt word includes multiple third-level object types, a target third-level object type prompt word can be further randomly determined from the third-level object type prompt words corresponding to the multiple third-level object types. Using a similar approach, a target fourth-level object type prompt word, a target fifth-level object type prompt word, and so on can be obtained.
[0057] The scene component under the target object type (if there are multiple levels of object types, the target object type can be the target object type of the highest level) can have one or more feature dimensions, and the feature dimension refers to the feature or attribute of the scene component in a certain aspect. For example, under the target object type of sun lounger, the feature dimensions can include: whether there is a backrest, whether there are armrests, whether it is foldable, how many legs it has, and so on. One or more target feature dimensions can be determined from the feature dimensions under the target object type. The target feature dimensions can be randomly selected, or the target feature dimensions can be determined in a certain order (such as according to the feature significance, the feature of whether there is a backrest is the most significant, and this feature dimension is given priority as the target feature dimension). Each feature dimension has one or more feature prompt words, such as the feature dimension of "whether there is a backrest", whose feature prompt words are "backrest", "no backrest", and the feature dimension of "how many legs there are", whose feature prompt words are "3 legs", "4 legs", etc. A random selection can be made from the feature prompt words of the target feature dimension as the target feature prompt word.
[0058] The target object type prompt words and target feature prompt words obtained above are combined, for example, by concatenating them with delimiters such as commas, and by adding start and end characters, to form the first prompt information. If the target object type prompt words include target object type prompt words at multiple levels, the target object type prompt words at each level can be used in the first prompt information, or only the target object type prompt words at the highest level can be used.
[0059] In one embodiment, the above-mentioned randomly generating the first prompt information according to the preset rules may further include the following steps:
[0060] A target color prompt word is randomly determined from a plurality of color prompt words and added to the first prompt information.
[0061] The color prompt words can be color names, such as yellow, bright yellow, light yellow, and cream yellow, or color style words, such as bright, rich, and elegant. A color prompt word can be randomly selected from the color prompt words as the target color prompt word and added to the first prompt information, that is, the first prompt information includes color description information.
[0062] The above method of generating the first prompt information by randomly determining the target object type prompt word, target feature prompt word, and target color prompt word can ensure that the keywords in the first prompt information are mutually correlated and adapted, which is conducive to the subsequent generation of high-quality first scene component combination.
[0063] In one embodiment, prompt information with better generation results can be randomly selected or selected from the prompt information input by other users as the first prompt information. For example, the prompt information previously input by another user, and the corresponding generated scene component combination is used by more users, can be used as the first prompt information.
[0064] The above describes the first prompt information. The following describes the circumstances under which the triggering condition is met.
[0065] In one embodiment, the above response satisfies a trigger condition in the game program, and determining information of the first scene component combination according to the first prompt information may include the following steps:
[0066] In response, in the game program, the game editing scene is entered from outside the game editing scene, and information of the first scene component combination is determined according to the first prompt information.
[0067] Among them, users can use the editing function to edit game scenes. They can choose to create a new game scene and edit it, or they can choose to edit an existing game scene. The game editing scene is a game scene displayed in an edited state. The game editing scene includes one or more scene components. They can be pre-installed (for example, the game program can provide preset game scenes of various styles, and users can select a preset game scene to edit, which initially comes with scene components) or they can be generated by user editing. Scene components are people or objects (or parts of people or objects) in the game editing scene.
[0068] In the game editing scene, users can edit the game scene's environment, such as background, weather, and lighting. They can also edit scene components, such as adding or deleting specific scene components and setting their properties. When the game editing scene is displayed, multiple first scene component controls can be provided for generating corresponding scene components in the game editing scene in response to and based on a user's first trigger operation. First scene component controls are controls for generating existing scene components in the game program, and are distinguished from second and third scene component controls described below. First scene component controls can be divided into different component types, and the classification methods or standards for component types can be the same as or different from those for object types described above. Figure 3 shows a schematic diagram of the game editing scene and the first scene component control. As shown in Figure 3, the first scene component control can be provided in the form of a list (including one or more levels of lists, with Figure 3 showing a second level list), with the list displaying one or more levels of component types. For example, "structure," "object," "environment," "mechanism," "creature," and "assembly" are first-level component types, and each first-level component type includes one or more second-level component types. For example, the first-level component type "object" includes second-level component types such as "furniture," "interior decoration," and "lamp." Each secondary component type includes one or more first scene component controls, such as the secondary component type "furniture" includes first scene component controls such as "log coffee table", "round low table", "wooden small table", and "European table". The user can perform a first trigger operation on the first scene component control, such as a click operation, a drag operation, etc., to generate a corresponding scene component in the game editing scene. For example, in Figure 3, the user drags the "round low table" first scene component control to a certain position in the game editing scene, which can trigger the generation of a round low table scene component at that position. The present disclosure does not limit the form, appearance, etc. of the first scene component control. The name of the scene component can be displayed in the first scene component control, and the icon of the scene component can also be displayed.
[0069] In one embodiment, the first scene component control is configured with a corresponding scene component template, which includes pre-edited scene component parameters. Scene component parameters may include one or more parameters such as shape, color, texture, transparency, material, size, and orientation, and may also include other parameters. When a user edits a scene component in the game editing scene, they need to set the scene component parameters for the scene component. When a scene component is generated in the game editing scene using the first scene component control, the scene component parameters in the scene component template corresponding to the first scene component control can be called to quickly generate the scene component based on these parameters. It can be understood that the first scene component control is a pre-edited, templated scene component. The scene component parameters are configured in the form of a template and provided to the user as the first scene component control. When the user uses the first scene component control, they are effectively applying the scene component template. This improves editing efficiency. Of course, after a scene component is generated, its scene component parameters can be modified, such as by scaling, changing its size, rotating, and changing its orientation, or by color setting, changing its color and transparency.
[0070] The game program may include a first scene component control, such as a game developer pre-editing a scene component template and configuring it as a first scene component control for player use. Furthermore, the first scene component control may be configured by the player. For example, the player may model a scene component in a game editing scene or other editing interface and save the scene component parameters to form a scene component template and configure it as the first scene component control.
[0071] In one embodiment, a user may be allowed to edit and update the first scene component control. For example, the user may modify the scene component template corresponding to the first scene component control, modify the scene component parameters therein, save the modification, and then update the scene component template corresponding to the first scene component control. When subsequently generating a scene component in a game editing scene using the first scene component control, the scene component parameters in the updated scene component template may be used to generate the scene component.
[0072] In one embodiment, a corresponding first scene component control can also be configured for each scene component combination. For example, a user can combine a block component onto the circular surface of a cylinder component to form a wheel-shaped mechanism component. Based on the scene component parameters of this mechanism component, a new first scene component control can be configured. Subsequently, the user can use this first scene component control to generate a mechanism component in the game editing scene. This allows for one-click generation of scene component combinations, which is very convenient.
[0073] In one embodiment, a virtual camera may be provided in the game editing scene. A virtual camera is a shooting tool in the game program that simulates a real camera and can be used to shoot to form the picture in the game editing scene. The virtual camera can be set at any position in the game editing scene and shoot the scene from any perspective, that is, it can have any posture, and its posture can be fixed or dynamically changing. In addition, any number of virtual cameras can be provided in the game editing scene, and different virtual cameras can shoot different game scene pictures. For example, two virtual cameras are provided in the game editing scene, one of which is used to shoot the main picture in the game editing scene, and the other is used to shoot the auxiliary picture in the game editing scene. When the main picture shows the front of a scene component, the auxiliary picture can show the side or back of the scene component, etc., to help the user see more comprehensive information.
[0074] The game editing scene can present two different perspectives, namely the observation perspective and the game perspective. The user can set which perspective to use in the game editing scene. For example, Figure 4 shows the setting interface of the game editing scene. The interface provides an option control for the perspective, and the user can choose to use the observation perspective or the game perspective. The observation perspective refers to observing the game editing scene from a third-person perspective. In the observation perspective, the user can not control the game character in the game editing scene, but directly control the virtual camera to move the perspective (the virtual camera is not displayed). The game perspective refers to observing the game editing scene from a first-person perspective. In the game perspective, the user can control a certain game character in the game editing scene. The game character can be bound to the virtual camera, that is, the positional relationship between the game character and the virtual camera is fixed. For example, the game character can be located at the focus of the virtual camera. When the user controls the game character to move, the virtual camera moves synchronously, thereby moving the perspective. Of course, in the observation perspective, it is also possible to set an invisible game character in the game editing scene, which is equivalent to hiding the game character in the game perspective. When the user moves the perspective, the virtual camera can be moved by moving the game character. In the observation perspective or game perspective, a virtual joystick, up or down controls, etc. can be set in the game editing scene. The user can move the virtual camera or move the game character by operating these controls.
[0075] In addition, other setting controls may be provided in the setting interface of the game editing scene, such as a "grid display" setting control for setting the grid display mode in the game editing scene, a "lens speed" setting control for setting the movement speed of the virtual camera or the movement speed of the virtual object controlled by the player in the game running scene, etc. This disclosure is not particularly limited.
[0076] Entering the game editing scene from outside the game editing scene refers to entering the game editing scene from a scene or interface that is not related to editing the game map. For example, entering the game editing scene from the game lobby, entering the game editing scene from the character information interface, etc., all belong to this situation. In one embodiment, the game program includes multiple functional modules, wherein at least one functional module among the multiple functional modules is an editor, and the editor is used to run and provide the game editing scene. Entering the game editing scene from outside the game editing scene may refer to entering the editor from other functional modules in the game program. In one embodiment, without closing the game editing scene, jumping from the game editing scene to other interfaces (such as the game lobby), at this time the game editing scene can automatically close after keeping running in the background for a period of time. If it returns to the game editing scene before it automatically closes, it does not belong to the case of entering the game editing scene from outside the game editing scene.
[0077] When entering the game editing scene from outside the game editing scene in the game program, the information of the first scene component combination can be determined based on the first prompt information. Entering the game editing scene is equivalent to meeting the trigger condition. Subsequently, a second scene component control corresponding to the first scene component combination can be provided, so that the user can quickly edit and generate the first scene component combination in the game editing scene.
[0078] In one embodiment, when providing a second scene component control corresponding to the first scene component combination, the game scene component generation method may further include the following steps:
[0079] While the current game editing scene is running, keep the second scene component controls unchanged.
[0080] The current game editing scene operation period refers to the process from entering the game editing scene from outside the game editing scene to exiting or closing the game editing scene. During this process, the second scene component control can always remain unchanged. It can be understood that when entering the game editing scene from outside the game editing scene for the first time, the information of the first scene component combination is determined according to the first prompt information, and the corresponding second scene component control is generated and provided. If the game editing scene is not closed, the second scene component control can be maintained, that is, the generation process of steps S210 and S220 will not be executed again.
[0081] In one embodiment, each time a game editing scene is entered from outside the game editing scene, a randomly generated first prompt information can be obtained, and information about a first scene component combination can be determined based on the first prompt information, thereby generating a corresponding second scene component control for the user to use. Each time the game editing scene is entered from outside the game editing scene, it means that the game editing scene is entered after the game editing scene was last closed. In other words, each time the game editing scene is re-entered, a random first scene component combination can be provided, increasing the diversity of game editing based on the existing scene components in the game program.
[0082] In one embodiment, the information of the first scene component combination can be determined according to the first prompt information in response to the operation of opening the scene component control interface in the game editing scene. The scene component control interface is an interface for accommodating the first scene component control and the second scene component control, and can be a sub-interface in the game editing scene. The operation of opening the scene component control interface can be an operation of sliding from the edge of the game editing scene to pull out the scene component control interface, or an operation of clicking on the control to open the scene component control interface, etc. The operation of opening the scene component control interface in the game editing scene is equivalent to satisfying the trigger condition, triggering the determination of the information of the first scene component combination according to the first prompt information. Exemplarily, after entering the game editing scene, when the scene component control interface is opened for the first time, the randomly generated first prompt information can be obtained or the first prompt information can be determined by other means, the information of the first scene component combination is determined according to the first prompt information, and then the second scene component control is generated, so that the opened scene component control interface can include the second scene component control for user use.
[0083] In one embodiment, after entering the game editing scene, information about the first scene component combination can be determined based on first prompt information in response to the game editing scene being in an idle state. The idle state of the game editing scene can mean that the amount of data calculation in the game editing scene is below a certain threshold, or the amount of interactive data between the terminal device and the server is below a certain threshold. In such a situation, the generation process is initiated, and information about the first scene component combination is determined based on the first prompt information. This can prevent the generation process from affecting other editing operations of the user, thereby ensuring smooth operation of the editing function.
[0084] The information of the first scene component combination includes but is not limited to one or more of the following information: detailed information of the first scene component combination, such as name, identification (ID or key), preview image, generation or editing time, resource occupancy value (parameters for quantifying storage, computing power and other resources occupied by scene components, game scenes, etc.); information of the first target scene components that constitute the first scene component combination, such as the component type of the first target scene component (i.e., what type of component the first target scene component is), morphological information (referring to attribute information that affects the morphological appearance, such as size, color, texture, material, etc.), and relative posture (i.e., posture relative to other first target scene components).
[0085] In one embodiment, determining the information of the first scene component combination according to the first prompt information may include the following steps:
[0086] Sending the first prompt information to the server, so that the server processes the first prompt information using a pre-trained component generation model to obtain information about a first scene component combination;
[0087] Receive information about the first scene component combination returned by the server.
[0088] The component generation model may be any type of machine learning model, such as a large language model (LLM). The server may parse the first prompt information through the component generation model, output information about the first scene component combination, and return it to the terminal device.
[0089] In one embodiment, the component generation model may also be deployed on the terminal side, and the terminal device may run the component generation model locally to process the first prompt information to obtain information about the first scene component combination.
[0090] Continuing with reference to Figure 2, in step S220, when displaying the game editing scene, multiple first scene component controls are provided, and second scene component controls corresponding to the first scene component combinations are provided; the first scene component controls are configured to respond to and generate corresponding scene components in the game editing scene according to the first trigger operation.
[0091] The first scene component control can be shown in FIG3 . When the user performs a first trigger operation on the first scene component control, a corresponding scene component is generated in the game editing scene. The scene component can be an existing scene component in the game program. In addition, a second scene component control corresponding to the first scene component combination can be generated and provided for the user to edit and use.
[0092] In one embodiment, the first scene component controls are divided into different component types, such as the component types shown in Figure 3. The above-mentioned provision of multiple first scene component controls and provision of second scene component controls corresponding to the first scene component combination may include the following steps:
[0093] Provide a first type selection control corresponding to each component type, and provide a second type selection control;
[0094] In response to a first selection operation on a first type selection control, determining a target first type selection control according to the first selection operation, and displaying a first scene component control under a component type corresponding to the target first type selection control;
[0095] In response to a second selection operation on the second type selection control, a second scene component control corresponding to the first scene component combination is displayed.
[0096] Among them, the first type selection control is used to select the component type of the first scene component control. As shown in reference figure 3, the first scene component control is provided in the form of a list, which is set under different component types. The buttons of the component types of "structure", "object", "environment", "organism", "combination", "furniture", "interior decoration" and "lamp" are the first type selection controls. The operation of the user clicking to select the first type selection control is the first selection operation, and the selected first type selection control is the target first type selection control. For example, the user selects the "furniture" first type selection control through the first selection operation, and the first scene component control under the furniture component type is displayed.
[0097] The second scene component control is treated as a separate component type, and its corresponding selection control is a second type selection control. As shown in reference figure 5, the "AI" (artificial intelligence, indicating that the first scene component combination is a scene component generated by artificial intelligence technology) button is a second type selection control, and the operation of the user clicking to select the second type selection control is the second selection operation. For example, if the user selects the second type selection control through the second selection operation, the second scene component control corresponding to the first scene component combination is displayed, that is, the "AI chair 1" control, "AI chair 2" control, etc. in Figure 5. In this way, the first scene component control and the second scene component control can be displayed separately, which is convenient for users to distinguish and use.
[0098] In one embodiment, determining the information of the first scene component combination according to the first prompt information may include the following steps:
[0099] Determine M first component generation schemes according to the first prompt information; each first component generation scheme includes information of the corresponding first scene component combination; different first component generation schemes are used to generate different first scene component combinations; M is a positive integer not less than 2.
[0100] Accordingly, the above-mentioned provision of the second scene component control corresponding to the first scene component combination may include the following steps:
[0101] Provide M second scene component controls corresponding to the M first scene component combinations.
[0102] The first component generation scheme is used to generate a first scene component combination, and the second component generation scheme described below is used to generate a second scene component combination. When the server (or terminal device) processes the first prompt information using the component generation model, M output results are obtained, each representing a first component generation scheme. For example, if the first prompt information is "sun lounge with foldable backrest," M first component generation schemes can be determined based on this first prompt information, corresponding to M different first scene component combinations, thus generating M different sun loungers. Each first component generation scheme includes information about the corresponding first scene component combination. The value of M can be determined based on experience or specific circumstances. For example, M can be set to 5 based on factors such as user needs and the computing power of the terminal device and server. Once M first component generation schemes are obtained, M second scene component controls can be generated and provided, each corresponding to a first scene component combination in a first component generation scheme. Subsequent users can use different second scene component controls to generate different first scene component combinations. This provides users with multiple alternative solutions, making it easier to meet their needs.
[0103] Continuing with reference to FIG. 2 , in step S230 , in response to a second triggering operation on the second scene component control, a first scene component combination is generated in the game editing scene according to the information of the first scene component combination.
[0104] The second trigger operation is an operation of using the second scene component control to generate the first scene component combination, such as dragging the second scene component control into the game editing scene. When the user performs the second trigger operation on the second scene component control, the first scene component combination can be generated in the game editing scene based on the information of the first scene component combination.
[0105] In one embodiment, the information of the first scene component combination includes information of a first target scene component, and the first target scene component is a scene component used to form the first scene component combination. The above-mentioned generation of the first scene component combination in the game editing scene based on the information of the first scene component combination may include the following steps:
[0106] A first target scene component is generated in the game editing scene according to the information of the first target scene component to form a first scene component combination.
[0107] The process of generating the first target scene component may include loading a program object of the first target scene component (e.g., game resources, parameters, codes, etc. including the first target scene component), rendering the first target scene component, etc. After all the first target scene components are generated, the first target scene components are arranged and combined according to their positional relationships, and the generated first target scene components, as a whole, form a first scene component combination.
[0108] In one embodiment, the above-mentioned step of generating the first target scene component in the game editing scene according to the information of the first target scene component to form the first scene component combination may include the following steps:
[0109] Determining a generation order of different first target scene components, wherein the generation order of at least some of the first target scene components is different from the generation order of other first target scene components;
[0110] Based on the information of the first target scene component and in accordance with the generation order of the first target scene component, the first target scene component is generated in the game editing scene to form a first scene component combination.
[0111] Among them, for all the first target scene components, the generation order is not exactly the same, that is, all the first target scene components have a certain generation order, and are not generated at the same time. The generation order of different first target scene components can be randomly determined according to the processing power of the game program. For example, when the game program generates the first target scene component, it can run F threads responsible for generation in parallel, so that F first target scene components can be generated at the same time. The first target scene components can be divided into F groups, and the same generation order is set for each group, or the scene components can be divided into F sets, and the generation order is set for the first target scene components in each set in the order of 1, 2, 3, ... For another example, the generation order can be determined according to the relative positions of different first target scene components. Specifically, there is a first target scene component that serves as a posture reference. If the position coordinates and angle coordinates of the first target scene component are both 0, the generation order of the first target scene component is set to 1 (i.e., the first generation). Next, the generation order of other first target scene components can be determined in sequence as 2, 3, 4... in a certain direction order (such as from left to right, from top to bottom, etc.). The closer the first target scene component is to the first target scene component with a generation order of 1, the earlier its generation order can be.
[0112] When the generation order of the first target scene components is determined, each first target scene component can be gradually generated according to the generation order, so that the generation process is more orderly and the game program is prevented from loading too much data at one time.
[0113] In one embodiment, the above-mentioned generation of the first target scene components in the game editing scene based on the information of the first target scene components and in the generation order of the first target scene components to form a first scene component combination may include the following steps: loading the information of each first target scene component in sequence according to the generation order of the first target scene components; the information may include component type, morphological information, and relative posture; after successfully loading the information of the first target scene component, generating a scene component of the corresponding component type according to the component type, setting its morphology according to the morphological information, and then placing it in the corresponding position and adjusting the angle according to the relative posture; after generating all the first target scene components, forming a first scene component combination.
[0114] In one embodiment, the above-mentioned generation of the first target scene components in the game editing scene based on the information of the first target scene components and in accordance with the generation order of the first target scene components may include the following steps: dynamically displaying the process of generating the first target scene components in the game editing scene based on the information of the first target scene components and in accordance with the generation order of the first target scene components within the screen of the game editing scene. The generation process of the first target scene components may be dynamically displayed within the screen of the game editing scene. For example, at the beginning, a screen is displayed in which no first target scene components have been generated; then, the generated first target scene components are gradually displayed; finally, when all the first target scene components have been generated, the complete first scene component combination is displayed. In this way, the user can watch the complete generation process, avoiding the user from waiting meaninglessly during the generation process, and making the user have a stronger perception of the generation process, resulting in a better user experience.
[0115] In one embodiment, referring to FIG6 , the game scene component generation method may further include the following steps S610 to S640:
[0116] Step S610: Acquire scene component control search information for searching for existing scene component controls.
[0117] Among them, the existing scene component control includes a first scene component control and / or a second scene component control, and the second scene component control here can be a second scene component control generated in the game editing scene, such as a second scene component control generated according to the first prompt information. Since the number of existing scene component controls and component types may be large, a search function may be provided to the user, and the search information input by the user is the scene component control search information. In one embodiment, a scene component control search control may be provided when the game editing scene is displayed to obtain scene component control search information based on the input of the scene component control search control. Among them, the scene component control search control is used to search for existing scene component controls by entering keywords, and can be a text input control, a voice input control, etc. Users can easily enter scene component control search information using the scene component control search control.
[0118] Step S620: Based on the scene component control search information, find an existing scene component control that matches the scene component control search information, and display it in the search results corresponding to the scene component control search information.
[0119] You can search for existing scene component controls in the editor, such as those built into the editor and those created by players (e.g., controls that combine scene components). A fuzzy search can be used, and any search result that has a certain degree of relevance to the scene component control search information will be considered a match.
[0120] For example, referring to FIG7 , a user enters "soccer" in the scene component control search control 701 to search for information about scene component controls. All existing scene component controls can be searched for scene component controls matching "soccer." If three first scene component controls 702, namely "soccer," "basketball," and "balloon," are found, they will be displayed in the search results.
[0121] Step S630, determine the second prompt information based on the scene component control search information, determine the information of the second scene component combination according to the second prompt information, generate a third scene component control corresponding to the second scene component combination and display it in the search results corresponding to the scene component control search information; the second scene component combination is the scene component combination to be generated corresponding to the second prompt information; the second scene component combination is composed of one or more scene components.
[0122] Among them, the scene component control search information can be used as the second prompt information, or the scene component control search information can be supplemented or modified, such as adding feature prompt words, color prompt words, etc. to the scene component control search information to obtain the second prompt information.
[0123] When the second prompt information is determined, a generator can be used to perform a generation process. For example, the terminal device can send the second prompt information to a server. The server processes the second prompt information using a component generation model, obtains information about the second scene component combination, and returns it to the terminal device. The terminal device then generates a third scene component control corresponding to the second scene component combination and displays it in the search results.
[0124] For example, referring to Figure 7, the user inputs the scene component control search information as "football". The information "football" can be used as the second prompt information to determine the information of the second scene component combination, and generate the corresponding third scene component control 703, that is, a new football scene component control is generated and displayed in the search results.
[0125] Step S640: In response to the third trigger operation on the third scene component control, a second scene component combination is generated in the game editing scene according to the information of the second scene component combination.
[0126] The third trigger operation is an operation using a third scene component control to generate a second scene component combination, such as dragging the third scene component control into the game editing scene. When the user performs the third trigger operation on the third scene component control, the second scene component combination can be generated in the game editing scene based on the information of the second scene component combination.
[0127] Based on the method of FIG6 , when a user searches for a scene component control, search results other than existing scene component controls may be provided, so that the user can edit and generate more diverse scene components in the game editing scene.
[0128] In one embodiment, the information of the second scene component combination includes information of a second target scene component, and the second target scene component is a scene component used to form the second scene component combination. The above-mentioned generation of the second scene component combination in the game editing scene based on the information of the second scene component combination may include the following steps:
[0129] A second target scene component is generated in the game editing scene according to the information of the second target scene component to form a second scene component combination.
[0130] The process of generating the second target scene component may include loading the program object of the second target scene component, rendering the second target scene component, etc. After all the second target scene components are generated, the second target scene components are arranged and combined according to their positional relationships, and the generated second target scene components, as a whole, form a second scene component combination.
[0131] In one embodiment, the above-mentioned step of generating the second target scene component in the game editing scene according to the information of the second target scene component to form the second scene component combination may include the following steps:
[0132] Determining a generation order of different second target scene components, wherein the generation order of at least some of the second target scene components is different from the generation order of other second target scene components;
[0133] Based on the information of the second target scene component and in accordance with the generation order of the second target scene component, the second target scene component is generated in the game editing scene to form a second scene component combination.
[0134] Among them, for all the second target scene components, their generation order is not exactly the same, that is, there is a certain order of generation for all the second target scene components, and they are not generated together at the same time. The generation order can be randomly determined for different second target scene components based on the processing power of the game program. For example, when the game program generates the second target scene components, it can run F threads responsible for generation in parallel, so that F second target scene components can be generated at the same time. The second target scene components can be divided into F groups, and the same generation order is set for each group, or the scene components can be divided into F sets, and the generation order is set for the second target scene components in each set in the order of 1, 2, 3, ... For another example, the generation order can be determined according to the relative positions of different second target scene components. Specifically, there is a second target scene component that serves as a posture reference. If the position coordinates and angle coordinates of the second target scene component are both 0, the generation order of the second target scene component is set to 1 (i.e., the first generation). Next, the generation order of other second target scene components can be determined in sequence as 2, 3, 4... in a certain direction order (such as from left to right, from top to bottom, etc.). The closer the second target scene component is to the second target scene component with a generation order of 1, the earlier its generation order can be.
[0135] When the generation order of the second target scene components is determined, each second target scene component can be gradually generated according to the generation order, so that the generation process is more orderly and the game program is prevented from loading too much data at one time.
[0136] In one embodiment, the above-mentioned generation of the second target scene components in the game editing scene based on the information of the second target scene components and in the generation order of the second target scene components to form a second scene component combination may include the following steps: loading the information of each second target scene component in sequence according to the generation order of the second target scene components; the information may include component type, morphological information, and relative posture; after successfully loading the information of the second target scene component, generating a scene component of the corresponding component type according to the component type, setting its morphology according to the morphological information, and then placing it in the corresponding position and adjusting the angle according to the relative posture; after generating all the second target scene components, forming a second scene component combination.
[0137] In one embodiment, the above-mentioned generation of the second target scene components in the game editing scene based on the information of the second target scene components and in accordance with the generation order of the second target scene components may include the following steps: dynamically displaying the information of the second target scene components in the screen of the game editing scene, and generating the second target scene components in the game editing scene according to the generation order of the second target scene components. The generation process of the second target scene components can be dynamically displayed in the screen of the game editing scene. For example, at the beginning, a screen in which no second target scene components are generated is displayed; then, the generated second target scene components are gradually displayed; finally, when all the second target scene components have been generated, the complete second scene component combination is displayed. In this way, the user can watch the complete generation process, avoid the user from waiting meaninglessly during the generation process, and make the user have a stronger perception of the generation process, and the user experience is better.
[0138] In one embodiment, when generating a third scene component control corresponding to the second scene component combination, the game scene component generation method may further include the following steps:
[0139] During the operation of the current game editing scene, if new scene component control search information is obtained, based on the new scene component control search information, the existing scene component control that matches the new scene component control search information is searched and displayed in the search results corresponding to the new scene component control search information; based on the new scene component control search information, new second prompt information is determined, and according to the new second prompt information, the information of the new second scene component combination is determined, and the third scene component control corresponding to the new second scene component combination is generated and displayed in the search results corresponding to the new scene component control search information; the third scene component control corresponding to the new second scene component combination is configured to respond and generate a new second scene component combination in the game editing scene according to the third trigger operation.
[0140] Among them, when the user has already searched for the scene component control and has input new scene component control search information, steps S610 to S640 can be executed again based on the new scene component control search information. In particular, by executing step S630 again, a new third scene component control corresponding to the second scene component combination is generated, which can overwrite the original third scene component control. Alternatively, the search results corresponding to the new scene component control search information can overwrite the original search results. Each time the scene component control search information is input, the generator can be used to perform a generation process, so that the user can use the generator to generate the required scene component combination at any time while editing in the game editing scene.
[0141] In one embodiment, determining the information of the second scene component combination according to the second prompt information may include the following steps:
[0142] Determine N second component generation schemes according to the second prompt information; each second component generation scheme includes information of the corresponding second scene component combination; different second component generation schemes are used to generate different second scene component combinations; N is a positive integer not less than 2.
[0143] Accordingly, the above-mentioned generation of the third scene component control corresponding to the second scene component combination and displaying it in the search results corresponding to the scene component control search information may include the following steps:
[0144] N third scene component controls corresponding to the N second scene component combinations are generated and displayed in the search results corresponding to the scene component control search information.
[0145] The second component generation scheme is a scheme for generating a second scene component combination. When the server (or terminal device) processes the second prompt information using the component generation model, N output results can be obtained, each of which is a second component generation scheme. For example, if the second prompt information is "football", based on this second prompt information, N second component generation schemes can be determined, corresponding to N different second scene component combinations, that is, N different footballs can be generated. Each second component generation scheme includes information about the corresponding second scene component combination. The value of N can be determined based on experience or specific circumstances. For example, the value of N can be set to 3 based on factors such as user needs and the computing power of the terminal device and server. When N second component generation schemes are obtained, N third scene component controls can be generated and provided, each third scene component control corresponding to a second scene component combination in a second component generation scheme. Subsequent users can use different third scene component controls to generate different second scene component combinations. This provides users with multiple alternative solutions, making it easier to meet user needs.
[0146] In one embodiment, the search results corresponding to the scene component control search information are displayed through the search interface, and the existing scene component controls and the third scene component controls that match the scene component control search information are arranged in the search interface. As shown in reference figure 7, the searched first scene component control 702 and the third scene component control 703 are arranged in order in the search interface 704, with the first scene component control 702 arranged at the top and the third scene component control 703 arranged at the bottom. Accordingly, the game scene component generation method can also include the following steps:
[0147] If the search interface does not display all existing scene component controls and third scene component controls that match the scene component control search information, then provide an interface navigation control;
[0148] In response to the fourth trigger operation on the interface navigation control, the search interface is controlled to scroll to a position where the third scene component control is displayed.
[0149] Referring to FIG7 , it can be seen that because the area currently displayed in the search interface 704 is insufficient to accommodate all search results, some search results are not visible to the user. Furthermore, because the third scene component control 703 is typically arranged at the bottom, the user is likely unable to see the third scene component control 703 and may not even be aware of the existence of the generator's generated results. Therefore, an interface navigation control can be provided, such as the "Click to view AI generated results" control shown in FIG7 .
[0150] The user's operation of the interface navigation control is the fourth trigger operation, such as clicking or long pressing the control. In response to the fourth preset operation, the search interface can be controlled to scroll so that the third scene component control is displayed, such as scrolling to the bottom of the entire interface, or scrolling to the location of the first third scene component control, etc. This allows the user to quickly find and use the third scene component control to generate a second scene component combination in the game editing scene, which is very convenient.
[0151] In one embodiment, when a first scene component combination is generated in a game editing scene through a second scene component control, or a second scene component combination is generated in a game editing scene through a third scene component control, the generated first scene component combination or second scene component combination can be added to a generation list.
[0152] The generated list is a list of scene components generated by the generator. For example, Figure 8 shows a schematic diagram of the generated list. The user can view information about various scene components generated by the generator and can also perform operations on these scene components. Adding the first scene component combination or the second scene component combination to the generated list is equivalent to saving the first scene component combination or the second scene component combination. The saved information may include: detailed information such as name, ID, scene component prompt information, preview image, generation or editing time, resource usage value (such as 650 and 320 in the generated list as shown in Figure 8); information about the first scene component combination or the second scene component combination, such as information about the first target scene component or the second target scene component. Adding the first scene component combination or the second scene component combination to the generated list indicates that the user has confirmed acceptance of the generated first scene component combination or the second scene component combination. In the generated list shown in Figure 8, the first item is the first scene component combination or the second scene component combination generated this time. The scene components in the list can be arranged in order of the time they were added to the generated list or the time of their generation. The higher the scene component is, the later it was added to the generated list or the time of its generation.
[0153] As shown in FIG8 , the user can trigger the rightmost “…” control to display detailed information. For example, a detailed interface can be displayed in a pop-up window or overlay format, showing detailed information of the selected scene component (such as the first scene component combination or the second scene component combination), such as the name, ID, scene component prompt information, preview image, generation or editing time, resource usage value, etc.
[0154] In one embodiment, in response to a generation triggering operation for the first scene component combination or the second scene component combination in the generation list, the first scene component combination or the second scene component combination is generated in the game editing scene.
[0155] Among them, the generation trigger operation is an operation of generating the first scene component combination or the second scene component combination to the game editing scene in the generation list. As shown in reference Figure 8, a "Generate to Scene" control is provided in the generation list, and the user's triggering operation of the control is a generation trigger operation, which can trigger the generation of the first scene component combination or the second scene component combination in the game editing scene. It should be understood that if the first scene component combination or the second scene component combination has been generated in the game editing scene, a new first scene component combination or second scene component combination can be generated in the game editing scene. There can be multiple first scene component combinations or second scene component combinations in the game editing scene.
[0156] The exemplary embodiment of the present disclosure further provides a device for generating a game scene component. Referring to FIG9 , the device 900 for generating a game scene component may include the following program modules:
[0157] The scene component combination information determination module 910 is configured to determine information of a first scene component combination according to the first prompt information in response to a trigger condition being satisfied in the game program; the first scene component combination is a scene component combination to be generated corresponding to the first prompt information; the first scene component combination is composed of one or more scene components;
[0158] The scene component control providing module 920 is configured to provide a plurality of first scene component controls and provide a second scene component control corresponding to the first scene component combination when displaying the game editing scene; the first scene component control is configured to respond to and generate a corresponding scene component in the game editing scene according to the first trigger operation;
[0159] The scene component combination generation processing module 930 is configured to execute a second trigger operation in response to the second scene component control, and generate a first scene component combination in the game editing scene according to the information of the first scene component combination.
[0160] In one embodiment, the scene component combination information determination module 910 is further configured to:
[0161] Before determining the information of the first scene component combination according to the first prompt information, the first prompt information is randomly generated according to a preset rule.
[0162] In one embodiment, the first prompt information is randomly generated according to a preset rule, including: randomly determining a target object type prompt word from a plurality of object type prompt words; determining a target feature dimension from the feature dimension under the target object type corresponding to the target object type prompt word, and randomly determining a target feature prompt word from the feature prompt words of the target feature dimension; and generating the first prompt information based on the target object type prompt word and the target feature prompt word.
[0163] In one embodiment, randomly determining a target object type prompt word from a plurality of object type prompt words includes: randomly determining a target first-level object type prompt word from a plurality of first-level object type prompt words; if the target first-level object type corresponding to the target first-level object type prompt word includes a plurality of second-level object types, randomly determining a target second-level object type prompt word from the second-level object type prompt words corresponding to the plurality of second-level object types.
[0164] In one embodiment, randomly generating the first prompt information according to a preset rule further includes: randomly determining a target color prompt word from a plurality of color prompt words and adding the target color prompt word to the first prompt information.
[0165] In one embodiment, in response to satisfying a trigger condition in a game program, determining information of a first scene component combination according to first prompt information includes: in response in the game program, entering a game editing scene from outside the game editing scene, and determining information of the first scene component combination according to the first prompt information.
[0166] In one embodiment, the scene component control providing module 920 is further configured to: when providing the second scene component control corresponding to the first scene component combination, keep the second scene component control unchanged during the running of the current game editing scene.
[0167] In one embodiment, the first scene component control is divided into different component types; multiple first scene component controls are provided, and second scene component controls corresponding to the first scene component combination are provided, including: providing a first type selection control corresponding to the component type, and providing a second type selection control; responding to a first selection operation on the first type selection control, determining a target first type selection control according to the first selection operation, and displaying the first scene component control under the component type corresponding to the target first type selection control; responding to a second selection operation on the second type selection control, displaying the second scene component control corresponding to the first scene component combination.
[0168] In one embodiment, determining information of the first scene component combination based on the first prompt information includes: determining M first component generation schemes based on the first prompt information; each first component generation scheme includes information of the corresponding first scene component combination; different first component generation schemes are used to generate different first scene component combinations; M is a positive integer not less than 2; providing a second scene component control corresponding to the first scene component combination includes: providing M second scene component controls corresponding to the M first scene component combinations.
[0169] In one embodiment, determining information of the first scene component combination based on the first prompt information includes: sending the first prompt information to a server, causing the server to process the first prompt information using a pre-trained component generation model to obtain information of the first scene component combination; and receiving information of the first scene component combination returned by the server.
[0170] In one embodiment, the information of the first scene component combination includes information of the first target scene component, and the first target scene component is a scene component used to constitute the first scene component combination; generating the first scene component combination in the game editing scene according to the information of the first scene component combination includes: generating the first target scene component in the game editing scene according to the information of the first target scene component to form the first scene component combination.
[0171] In one embodiment, the game scene component generation device 900 may also include a search processing module, which is configured to: obtain scene component control search information for searching for existing scene component controls; the existing scene component controls include a first scene component control and / or a second scene component control; based on the scene component control search information, find the existing scene component control that matches the scene component control search information, and display it in the search results corresponding to the scene component control search information; determine the second prompt information based on the scene component control search information, determine the information of the second scene component combination according to the second prompt information, generate a third scene component control corresponding to the second scene component combination and display it in the search results corresponding to the scene component control search information; the second scene component combination is the scene component combination to be generated corresponding to the second prompt information; the second scene component combination consists of one or more scene components; in response to the third trigger operation on the third scene component control, generate the second scene component combination in the game editing scene according to the information of the second scene component combination.
[0172] In one embodiment, the search processing module is further configured to: in the case of generating a third scene component control corresponding to the second scene component combination, during the operation of the current game editing scene, if new scene component control search information is obtained, then based on the new scene component control search information, find the existing scene component control that matches the new scene component control search information, and display it in the search results corresponding to the new scene component control search information; determine new second prompt information based on the new scene component control search information, determine the information of the new second scene component combination according to the new second prompt information, generate the third scene component control corresponding to the new second scene component combination and display it in the search results corresponding to the new scene component control search information; the third scene component control corresponding to the new second scene component combination is configured to respond and generate a new second scene component combination in the game editing scene according to the third trigger operation.
[0173] In one embodiment, the search results corresponding to the scene component control search information are displayed through the search interface, and the existing scene component controls and the third scene component controls that match the scene component control search information are arranged in the search interface; the search processing module is also configured to: if the search interface does not display all the existing scene component controls and the third scene component controls that match the scene component control search information, provide an interface navigation control; in response to the fourth trigger operation of the interface navigation control, control the search interface to scroll to the position where the third scene component control is displayed.
[0174] In one embodiment, determining information about the second scene component combination based on the second prompt information includes: determining N second component generation schemes based on the second prompt information; each second component generation scheme includes information about the corresponding second scene component combination; different second component generation schemes are used to generate different second scene component combinations; N is a positive integer not less than 2; generating a third scene component control corresponding to the second scene component combination and displaying it in the search results corresponding to the scene component control search information, including: generating N third scene component controls corresponding to the N second scene component combinations and displaying them in the search results corresponding to the scene component control search information.
[0175] In one embodiment, obtaining scene component control search information for searching for a first scene component control includes: providing a scene component control search control when displaying a game editing scene, and obtaining scene component control search information based on an input of the scene component control search control.
[0176] The specific details of each part of the above-mentioned device have been described in detail in the implementation method part. The undisclosed details can be found in the implementation method part, so they will not be repeated here.
[0177] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium, which can be implemented in the form of a program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute (more specifically, enable the processor of the electronic device to execute) the steps described in the above "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure, such as the game scene component generation method in this exemplary embodiment, which includes the following steps: in response to a trigger condition being met in a game program, determining information of a first scene component combination according to first prompt information; the first scene component combination is a scene component combination to be generated corresponding to the first prompt information; the first scene component combination consists of one or more scene components; in the case of displaying a game editing scene, multiple first scene component controls are provided, and a second scene component control corresponding to the first scene component combination is provided; the first scene component control is configured to respond to and generate a corresponding scene component in the game editing scene according to the first trigger operation; in response to a second trigger operation on the second scene component control, the first scene component combination is generated in the game editing scene according to the information of the first scene component combination.
[0178] In one embodiment, before determining the information of the first scene component combination according to the first prompt information, the method further includes: randomly generating the first prompt information according to a preset rule.
[0179] In one embodiment, the first prompt information is randomly generated according to a preset rule, including: randomly determining a target object type prompt word from a plurality of object type prompt words; determining a target feature dimension from the feature dimension under the target object type corresponding to the target object type prompt word, and randomly determining a target feature prompt word from the feature prompt words of the target feature dimension; and generating the first prompt information based on the target object type prompt word and the target feature prompt word.
[0180] In one embodiment, randomly determining a target object type prompt word from a plurality of object type prompt words includes: randomly determining a target first-level object type prompt word from a plurality of first-level object type prompt words; if the target first-level object type corresponding to the target first-level object type prompt word includes a plurality of second-level object types, randomly determining a target second-level object type prompt word from the second-level object type prompt words corresponding to the plurality of second-level object types.
[0181] In one embodiment, randomly generating the first prompt information according to a preset rule further includes: randomly determining a target color prompt word from a plurality of color prompt words and adding the target color prompt word to the first prompt information.
[0182] In one embodiment, in response to satisfying a trigger condition in a game program, determining information of a first scene component combination according to first prompt information includes: in response in the game program, entering a game editing scene from outside the game editing scene, and determining information of the first scene component combination according to the first prompt information.
[0183] In one embodiment, in the case of providing a second scene component control corresponding to the first scene component combination, the method further includes: keeping the second scene component control unchanged during the execution of the current game editing scene.
[0184] In one embodiment, the first scene component control is divided into different component types; multiple first scene component controls are provided, and second scene component controls corresponding to the first scene component combination are provided, including: providing a first type selection control corresponding to the component type, and providing a second type selection control; responding to a first selection operation on the first type selection control, determining a target first type selection control according to the first selection operation, and displaying the first scene component control under the component type corresponding to the target first type selection control; responding to a second selection operation on the second type selection control, displaying the second scene component control corresponding to the first scene component combination.
[0185] In one embodiment, determining information of the first scene component combination based on the first prompt information includes: determining M first component generation schemes based on the first prompt information; each first component generation scheme includes information of the corresponding first scene component combination; different first component generation schemes are used to generate different first scene component combinations; M is a positive integer not less than 2; providing a second scene component control corresponding to the first scene component combination includes: providing M second scene component controls corresponding to the M first scene component combinations.
[0186] In one embodiment, determining information of the first scene component combination based on the first prompt information includes: sending the first prompt information to a server, causing the server to process the first prompt information using a pre-trained component generation model to obtain information of the first scene component combination; and receiving information of the first scene component combination returned by the server.
[0187] In one embodiment, the information of the first scene component combination includes information of the first target scene component, and the first target scene component is a scene component used to constitute the first scene component combination; generating the first scene component combination in the game editing scene according to the information of the first scene component combination includes: generating the first target scene component in the game editing scene according to the information of the first target scene component to form the first scene component combination.
[0188] In one embodiment, the method also includes: obtaining scene component control search information for searching for existing scene component controls; the existing scene component controls include a first scene component control and / or a second scene component control; based on the scene component control search information, finding an existing scene component control that matches the scene component control search information, and displaying it in the search results corresponding to the scene component control search information; determining second prompt information based on the scene component control search information, determining information of a second scene component combination according to the second prompt information, generating a third scene component control corresponding to the second scene component combination and displaying it in the search results corresponding to the scene component control search information; the second scene component combination is a scene component combination to be generated corresponding to the second prompt information; the second scene component combination consists of one or more scene components; in response to a third trigger operation on the third scene component control, generating a second scene component combination in the game editing scene according to the information of the second scene component combination.
[0189] In one embodiment, when generating a third scene component control corresponding to the second scene component combination, the method also includes: during the operation of the current game editing scene, if new scene component control search information is obtained, then based on the new scene component control search information, searching for existing scene component controls that match the new scene component control search information, and displaying them in the search results corresponding to the new scene component control search information; determining new second prompt information based on the new scene component control search information, determining information of a new second scene component combination according to the new second prompt information, generating a third scene component control corresponding to the new second scene component combination and displaying it in the search results corresponding to the new scene component control search information; the third scene component control corresponding to the new second scene component combination is configured to respond and generate a new second scene component combination in the game editing scene according to the third trigger operation.
[0190] In one embodiment, the search results corresponding to the scene component control search information are displayed through the search interface, and the existing scene component controls and the third scene component controls that match the scene component control search information are arranged in the search interface; the method also includes: if the search interface does not display all the existing scene component controls and the third scene component controls that match the scene component control search information, providing an interface navigation control; in response to the fourth trigger operation of the interface navigation control, controlling the search interface to scroll to the position where the third scene component control is displayed.
[0191] In one embodiment, determining information about the second scene component combination based on the second prompt information includes: determining N second component generation schemes based on the second prompt information; each second component generation scheme includes information about the corresponding second scene component combination; different second component generation schemes are used to generate different second scene component combinations; N is a positive integer not less than 2; generating a third scene component control corresponding to the second scene component combination and displaying it in the search results corresponding to the scene component control search information, including: generating N third scene component controls corresponding to the N second scene component combinations and displaying them in the search results corresponding to the scene component control search information.
[0192] In one embodiment, obtaining scene component control search information for searching for a first scene component control includes: providing a scene component control search control when displaying a game editing scene, and obtaining scene component control search information based on an input of the scene component control search control.
[0193] The above method is implemented based on a computer-readable storage medium. On the one hand, it provides a solution for quickly and efficiently generating game scene components. It can determine the information of the first scene component combination based on the first prompt information and provide the corresponding second scene component control. The user can quickly generate the first scene component combination in the game editing scene by performing a second trigger operation on the second scene component control. The user does not need to perform a large amount of manual operations to edit and generate scene components, which reduces manpower and time costs and improves editing efficiency. On the other hand, by generating new scene components by combining existing scene components in the game program, it is possible to break through the limitations of the existing scene component library, generate a large number of diverse first scene component combinations, and enrich the game content. On the other hand, the method of combining scene components does not require the execution of a complete modeling process, which is conducive to controlling the resource size of the generated first scene component combination, thereby reducing the overhead of resources such as computing power and storage and the cost of implementing the solution, and can be applied to lightweight scenarios such as mobile games.
[0194] In an alternative embodiment, the program product can be implemented as a portable compact disc read-only memory (CD-ROM) and includes program code, and can be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0195] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0196] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0197] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0198] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, and the like, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0199] The exemplary embodiments of the present disclosure further provide an electronic device, such as the terminal device 110 or the server 120 described above. The electronic device may include a processor and a memory. The memory stores executable instructions for the processor, such as program code. The processor executes the executable instructions to perform the method of the exemplary embodiment. The electronic device may also include a display for displaying a graphical user interface.
[0200] 10 , an electronic device is exemplarily described in the form of a general-purpose computing device. It should be understood that the electronic device 1000 shown in FIG10 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0201] As shown in FIG. 10 , the electronic device 1000 may include a processor 1010 , a memory 1020 , a bus 1030 , an I / O (input / output) interface 1040 , a network adapter 1050 , and a display 1060 .
[0202] Memory 1020 may include volatile memory, such as RAM 1021 and cache unit 1022, and non-volatile memory, such as ROM 1023. Memory 1020 may also include one or more program modules 1024. Such program modules 1024 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. For example, program modules 1024 may include the modules described above.
[0203] The processor 1010 may include one or more processing units, for example: the processor 1010 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc.
[0204] Processor 1010 can be used to execute executable instructions stored in memory 1020, such as the game scene component generation method in this exemplary embodiment, which includes the following steps: in response to a trigger condition being met in a game program, determining information of a first scene component combination according to first prompt information; the first scene component combination is a scene component combination to be generated corresponding to the first prompt information; the first scene component combination is composed of one or more scene components; when displaying a game editing scene, multiple first scene component controls are provided, and a second scene component control corresponding to the first scene component combination is provided; the first scene component control is configured to respond to and generate a corresponding scene component in the game editing scene according to the first trigger operation; in response to a second trigger operation on the second scene component control, the first scene component combination is generated in the game editing scene according to the information of the first scene component combination.
[0205] In one embodiment, before determining the information of the first scene component combination according to the first prompt information, the method further includes: randomly generating the first prompt information according to a preset rule.
[0206] In one embodiment, the first prompt information is randomly generated according to a preset rule, including: randomly determining a target object type prompt word from a plurality of object type prompt words; determining a target feature dimension from the feature dimension under the target object type corresponding to the target object type prompt word, and randomly determining a target feature prompt word from the feature prompt words of the target feature dimension; and generating the first prompt information based on the target object type prompt word and the target feature prompt word.
[0207] In one embodiment, randomly determining a target object type prompt word from a plurality of object type prompt words includes: randomly determining a target first-level object type prompt word from a plurality of first-level object type prompt words; if the target first-level object type corresponding to the target first-level object type prompt word includes a plurality of second-level object types, randomly determining a target second-level object type prompt word from the second-level object type prompt words corresponding to the plurality of second-level object types.
[0208] In one embodiment, randomly generating the first prompt information according to a preset rule further includes: randomly determining a target color prompt word from a plurality of color prompt words and adding the target color prompt word to the first prompt information.
[0209] In one embodiment, in response to satisfying a trigger condition in a game program, determining information of a first scene component combination according to first prompt information includes: in response in the game program, entering a game editing scene from outside the game editing scene, and determining information of the first scene component combination according to the first prompt information.
[0210] In one embodiment, in the case of providing a second scene component control corresponding to the first scene component combination, the method further includes: keeping the second scene component control unchanged during the execution of the current game editing scene.
[0211] In one embodiment, the first scene component control is divided into different component types; multiple first scene component controls are provided, and second scene component controls corresponding to the first scene component combination are provided, including: providing a first type selection control corresponding to the component type, and providing a second type selection control; responding to a first selection operation on the first type selection control, determining a target first type selection control according to the first selection operation, and displaying the first scene component control under the component type corresponding to the target first type selection control; responding to a second selection operation on the second type selection control, displaying the second scene component control corresponding to the first scene component combination.
[0212] In one embodiment, determining information of the first scene component combination based on the first prompt information includes: determining M first component generation schemes based on the first prompt information; each first component generation scheme includes information of the corresponding first scene component combination; different first component generation schemes are used to generate different first scene component combinations; M is a positive integer not less than 2; providing a second scene component control corresponding to the first scene component combination includes: providing M second scene component controls corresponding to the M first scene component combinations.
[0213] In one embodiment, determining information of the first scene component combination based on the first prompt information includes: sending the first prompt information to a server, causing the server to process the first prompt information using a pre-trained component generation model to obtain information of the first scene component combination; and receiving information of the first scene component combination returned by the server.
[0214] In one embodiment, the information of the first scene component combination includes information of the first target scene component, and the first target scene component is a scene component used to constitute the first scene component combination; generating the first scene component combination in the game editing scene according to the information of the first scene component combination includes: generating the first target scene component in the game editing scene according to the information of the first target scene component to form the first scene component combination.
[0215] In one embodiment, the method also includes: obtaining scene component control search information for searching for existing scene component controls; the existing scene component controls include a first scene component control and / or a second scene component control; based on the scene component control search information, finding an existing scene component control that matches the scene component control search information, and displaying it in the search results corresponding to the scene component control search information; determining second prompt information based on the scene component control search information, determining information of a second scene component combination according to the second prompt information, generating a third scene component control corresponding to the second scene component combination and displaying it in the search results corresponding to the scene component control search information; the second scene component combination is a scene component combination to be generated corresponding to the second prompt information; the second scene component combination consists of one or more scene components; in response to a third trigger operation on the third scene component control, generating a second scene component combination in the game editing scene according to the information of the second scene component combination.
[0216] In one embodiment, when generating a third scene component control corresponding to the second scene component combination, the method also includes: during the operation of the current game editing scene, if new scene component control search information is obtained, then based on the new scene component control search information, searching for existing scene component controls that match the new scene component control search information, and displaying them in the search results corresponding to the new scene component control search information; determining new second prompt information based on the new scene component control search information, determining information of a new second scene component combination according to the new second prompt information, generating a third scene component control corresponding to the new second scene component combination and displaying it in the search results corresponding to the new scene component control search information; the third scene component control corresponding to the new second scene component combination is configured to respond and generate a new second scene component combination in the game editing scene according to the third trigger operation.
[0217] In one embodiment, the search results corresponding to the scene component control search information are displayed through the search interface, and the existing scene component controls and the third scene component controls that match the scene component control search information are arranged in the search interface; the method also includes: if the search interface does not display all the existing scene component controls and the third scene component controls that match the scene component control search information, providing an interface navigation control; in response to the fourth trigger operation of the interface navigation control, controlling the search interface to scroll to the position where the third scene component control is displayed.
[0218] In one embodiment, determining information about the second scene component combination based on the second prompt information includes: determining N second component generation schemes based on the second prompt information; each second component generation scheme includes information about the corresponding second scene component combination; different second component generation schemes are used to generate different second scene component combinations; N is a positive integer not less than 2; generating a third scene component control corresponding to the second scene component combination and displaying it in the search results corresponding to the scene component control search information, including: generating N third scene component controls corresponding to the N second scene component combinations and displaying them in the search results corresponding to the scene component control search information.
[0219] In one embodiment, obtaining scene component control search information for searching for a first scene component control includes: providing a scene component control search control when displaying a game editing scene, and obtaining scene component control search information based on an input of the scene component control search control.
[0220] The above method is implemented based on the electronic device 1000. On the one hand, it provides a solution for quickly and efficiently generating game scene components. It can determine the information of the first scene component combination based on the first prompt information and provide the corresponding second scene component control. The user can quickly generate the first scene component combination in the game editing scene by performing a second trigger operation on the second scene component control. The user does not need to perform a large amount of manual operations to edit and generate scene components, which reduces manpower and time costs and improves editing efficiency. On the other hand, by generating new scene components by combining existing scene components in the game program, it is possible to break through the limitations of the existing scene component library, generate a large number of diverse first scene component combinations, and enrich the game content. On the other hand, the method of combining scene components does not require the execution of a complete modeling process, which is conducive to controlling the resource size of the generated first scene component combination, thereby reducing the overhead of resources such as computing power and storage and the cost of implementing the solution, and can be applied to lightweight scenarios such as mobile games.
[0221] The bus 1030 is used to realize the connection between different components of the electronic device 1000 and may include a data bus, an address bus, and a control bus.
[0222] The electronic device 1000 can communicate with one or more external devices 1100 (eg, a keyboard, a mouse, an external controller, etc.) through the I / O interface 1040 .
[0223] The electronic device 1000 can communicate with one or more networks via the network adapter 1050. For example, the network adapter 1050 can provide mobile communication solutions such as 3G / 4G / 5G, or wireless communication solutions such as wireless LAN, Bluetooth, and near-field communication. The network adapter 1050 can communicate with other modules of the electronic device 1000 via the bus 1030.
[0224] The electronic device 1000 can display a graphical user interface through the display 1060, such as displaying a game editing scene.
[0225] Although not shown in FIG. 10 , other hardware and / or software modules may be provided in the electronic device 1000 , including but not limited to microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0226] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0227] It will be understood by those skilled in the art that various aspects of the present disclosure can be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation method combining hardware and software aspects, which can be collectively referred to as "circuit", "module" or "system" here. After considering the specification and practicing the invention disclosed herein, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and implementation methods are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims. It should be understood that the present disclosure is not limited to the precise structure described above and shown in the drawings, and various modifications and changes can be made without departing from its scope.
Claims
1. A method for generating a game scene component, the method comprising: In response to a trigger condition being satisfied in the game program, determining information of a first scene component combination according to the first prompt information; The first scene component combination is a scene component combination to be generated corresponding to the first prompt information; The first scene component combination consists of one or more scene components; In the case of displaying a game editing scene, providing a plurality of first scene component controls, and providing a second scene component control corresponding to the first scene component combination; The first scene component control is configured to respond to and generate a corresponding scene component in the game editing scene according to a first trigger operation; In response to a second trigger operation on the second scene component control, the first scene component combination is generated in the game editing scene according to the information of the first scene component combination.
2. The method according to claim 1, wherein: Before determining the information of the first scene component combination according to the first prompt information, the method further includes: The first prompt information is randomly generated according to preset rules.
3. The method according to claim 2, wherein: The randomly generating the first prompt information according to a preset rule includes: Randomly determine a target object type cue word from a plurality of object type cue words; Determine a target feature dimension from the feature dimensions under the target object type corresponding to the target object type prompt word, and randomly determine a target feature prompt word from the feature prompt words of the target feature dimension; Generate first prompt information according to the target object type prompt word and the target feature prompt word.
4. The method according to claim 3, wherein: The step of randomly determining a target object type prompt word from a plurality of object type prompt words comprises: randomly determining a target first-level object type cue word from a plurality of first-level object type cue words; If the target first-level object type corresponding to the target first-level object type prompt word includes multiple second-level object types, the target second-level object type prompt word is randomly determined from the second-level object type prompt words corresponding to the multiple second-level object types.
5. The method according to claim 3, wherein: The randomly generating the first prompt information according to the preset rule also includes: A target color prompt word is randomly determined from a plurality of color prompt words, and is added to the first prompt information.
6. The method according to claim 1, wherein: The response satisfies the trigger condition in the game program, and determines the information of the first scene component combination according to the first prompt information, including: In response to entering the game editing scene from outside the game editing scene in the game program, information of a first scene component combination is determined according to first prompt information.
7. The method according to claim 6, wherein: In the case of providing a second scene component control corresponding to the first scene component combination, the method further includes: During the running of the current game editing scene, the second scene component control remains unchanged.
8. The method according to claim 1, wherein: The first scene component controls are divided into different component types; The providing of a plurality of first scene component controls and providing a second scene component control corresponding to the combination of the first scene components includes: providing a first type selection control corresponding to the component type, and providing a second type selection control; In response to a first selection operation on the first type selection control, determining a target first type selection control according to the first selection operation, and displaying a first scene component control under a component type corresponding to the target first type selection control; In response to a second selection operation on the second type selection control, a second scene component control corresponding to the first scene component combination is displayed.
9. The method according to claim 1, wherein: The information of determining the first scene component combination according to the first prompt information includes: Determine M first component generation schemes according to the first prompt information; each first component generation scheme includes information of a corresponding first scene component combination; different first component generation schemes are used to generate different first scene component combinations; M is a positive integer not less than 2; The providing of a second scene component control corresponding to the first scene component combination includes: Provide M second scene component controls corresponding to the M first scene component combinations.
10. The method according to claim 1, wherein: The information of determining the first scene component combination according to the first prompt information includes: Sending the first prompt information to a server, so that the server processes the first prompt information using a pre-trained component generation model to obtain information about the first scene component combination; Receive information about the first scene component combination returned by the server.
11. The method according to claim 1, wherein: The information of the first scene component combination includes information of a first target scene component, where the first target scene component is a scene component used to form the first scene component combination; generating the first scene component combination in the game editing scene according to the information of the first scene component combination includes: The first target scene component is generated in the game editing scene according to the information of the first target scene component to form the first scene component combination.
12. The method according to claim 1, wherein: The method further comprises: Acquire scene component control search information for searching for existing scene component controls; the existing scene component controls include a first scene component control and / or a second scene component control; Based on the scene component control search information, searching for an existing scene component control that matches the scene component control search information, and displaying the existing scene component control in the search results corresponding to the scene component control search information; Determine second prompt information based on the scene component control search information, determine information of a second scene component combination according to the second prompt information, generate a third scene component control corresponding to the second scene component combination and display it in the search result corresponding to the scene component control search information; the second scene component combination is a scene component combination to be generated corresponding to the second prompt information; the second scene component combination is composed of one or more scene components; In response to a third trigger operation on the third scene component control, the second scene component combination is generated in the game editing scene according to the information of the second scene component combination.
13. The method according to claim 12, wherein: In the case of generating a third scene component control corresponding to the second scene component combination, the method further includes: During the operation of the current game editing scene, if new scene component control search information is obtained, then based on the new scene component control search information, an existing scene component control that matches the new scene component control search information is searched and displayed in the search results corresponding to the new scene component control search information; new second prompt information is determined based on the new scene component control search information, information of a new second scene component combination is determined according to the new second prompt information, a third scene component control corresponding to the new second scene component combination is generated and displayed in the search results corresponding to the new scene component control search information; the third scene component control corresponding to the new second scene component combination is configured to respond and generate the new second scene component combination in the game editing scene according to a third trigger operation.
14. The method according to claim 12, wherein: The search results corresponding to the scene component control search information are displayed through a search interface, and the existing scene component controls matching the scene component control search information and the third scene component control are arranged in the search interface; the method further includes: If the search interface does not display all existing scene component controls and the third scene component control that match the scene component control search information, providing an interface navigation control; In response to a fourth trigger operation on the interface navigation control, the search interface is controlled to scroll to a position where the third scene component control is displayed.
15. The method according to claim 12, wherein: The information of determining the second scene component combination according to the second prompt information includes: Determine N second component generation schemes according to the second prompt information; each second component generation scheme includes information of a corresponding second scene component combination; different second component generation schemes are used to generate different second scene component combinations; N is a positive integer not less than 2; The step of generating a third scene component control corresponding to the second scene component combination and displaying the third scene component control in the search result corresponding to the scene component control search information includes: N third scene component controls corresponding to the N second scene component combinations are generated and displayed in the search results corresponding to the scene component control search information.
16. The method according to claim 12, wherein: The acquiring scene component control search information for searching the first scene component control includes: When the game editing scene is displayed, a scene component control search control is provided to obtain scene component control search information based on the input of the scene component control search control.
17. A device for generating a game scene component, the device comprising: A scene component combination information determination module is configured to execute a response to satisfying a trigger condition in the game program and determine information of a first scene component combination according to the first prompt information; The first scene component combination is a scene component combination to be generated corresponding to the first prompt information; the first scene component combination is composed of one or more scene components; A scene component control providing module is configured to provide a plurality of first scene component controls and provide a second scene component control corresponding to the first scene component combination when displaying a game editing scene; the first scene component control is configured to respond to and generate a corresponding scene component in the game editing scene according to a first trigger operation; The scene component combination generation processing module is configured to execute a second trigger operation in response to the second scene component control, and generate the first scene component combination in the game editing scene according to the information of the first scene component combination.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 16 is implemented.
19. An electronic device comprising: processor; A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 16 by executing the executable instructions.
Citation Information
Patent Citations
Information interaction method and device in game scene and computer readable medium
CN111790148A
Game scene editing method and device, electronic equipment and storage medium
CN112717414A
User interface editing method and device in game and storage medium
CN114201167A
Game scene editing method and device, storage medium and electronic equipment
CN115779413A
Interaction control method and device, computer equipment and storage medium
CN116617651A