Methods, devices, storage media and electronic devices for generating components in game scenes

By automatically generating game scene component combinations through a graphical user interface and text input, the problem of low efficiency in generating game scene components is solved, and fast and efficient component generation and personalized model presentation are achieved.

CN116688516BActive Publication Date: 2026-11-10NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310715180.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-15
Publication Date
2026-11-10
Estimated Expiration
2043-06-15

AI Technical Summary

Technical Problem

Existing technologies for generating game scene components are inefficient, relying on manual operation and consuming a lot of manpower and time, making it difficult to meet the needs for efficient generation and personalization.

Method used

The game editing scene and scene component selection controls are displayed through a graphical user interface. It accepts text input and divides it into multiple text blocks. Based on the text block information, it automatically generates scene component combinations to form a virtual model corresponding to the target text.

Benefits of technology

Scene component combinations can be generated quickly without manual operation, reducing manpower and time costs, meeting personalized needs, enriching game scenes and improving generation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116688516B_ABST
    Figure CN116688516B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, storage medium, and electronic device for generating models in a game scene, relating to the field of computer graphics technology. The method includes: displaying a graphical user interface (GUI) provided by a running game program; displaying a game editing scene to be edited and multiple scene component selection controls within the GUI; the scene component selection controls responding to and generating corresponding scene components in the game editing scene according to operation instructions; providing a text input entry point in the GUI and accepting input target text; dividing the target text into multiple text blocks, determining the scene components corresponding to the text blocks and their information; and generating the scene components corresponding to the text blocks in the game editing scene based on the information of the scene components corresponding to the text blocks, forming a combination of scene components corresponding to the target text. This disclosure enables the generation of corresponding scene component combinations in a game scene through text input, improving component generation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer graphics technology, and in particular to a method for generating components in a game scene, a device for generating components in a game scene, a computer-readable storage medium, and an electronic device. Background Technology

[0002] A game scene typically consists of a number of components (or models), each of which may be an object or a person within the game scene. Modeling and editing the objects or people in the game scene is one of the main tasks in creating a game scene.

[0003] Currently, modeling and editing in game scenes mainly rely on manual operation by relevant personnel. For example, the generation process of a single component generally includes: manually editing the shape, adjusting the size and position, rendering colors and textures, and finally generating the required component. This method is costly in terms of manpower and time, and is inefficient. Summary of the Invention

[0004] This disclosure provides a method for generating components in a game scene, a device for generating components in a game scene, a computer-readable storage medium, and an electronic device, so as to at least partially solve the problem of low component generation efficiency in related technologies.

[0005] According to a first aspect of this disclosure, a method for generating components in a game scene is provided. The method includes: displaying a graphical user interface provided by a running game program; displaying a game editing scene to be edited and multiple scene component selection controls in the graphical user interface; the scene component selection controls being used to respond to and generate corresponding scene components in the game editing scene according to operation instructions; providing a text input entry in the graphical user interface and accepting target text input based on the text input entry; dividing the target text into multiple text blocks; determining the scene components corresponding to the text blocks and the information of the scene components; generating the scene components corresponding to the text blocks in the game editing scene according to the information of the scene components corresponding to the text blocks, forming a combination of scene components corresponding to the target text.

[0006] According to a second aspect of this disclosure, a component generation apparatus for a game scene is provided. The apparatus includes: a graphical user interface processing module configured to display a graphical user interface provided by a running game program, displaying a game editing scene to be edited and multiple scene component selection controls in the graphical user interface, the scene component selection controls being used to respond to and generate corresponding scene components in the game editing scene according to operation instructions; an information acquisition module configured to provide a text input entry in the graphical user interface and accept target text input based on the text input entry; a scene component determination module configured to divide the target text into multiple text blocks, determine the scene components corresponding to the text blocks and the information of the scene components; and a component generation module configured to generate the scene components corresponding to the text blocks in the game editing scene according to the information of the scene components corresponding to the text blocks, forming a combination of scene components corresponding to the target text.

[0007] According to a third aspect of this disclosure, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the component generation method and possible implementations thereof in the game scene of the first aspect described above.

[0008] According to a fourth aspect of this 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 component generation method and possible implementations of the game scene described in the first aspect by executing the executable instructions.

[0009] The technical solution disclosed herein has the following beneficial effects: On the one hand, a solution is provided to generate scene component combinations (i.e., virtual models) by inputting text. The solution determines the corresponding scene components and their information based on the text blocks in the input target text, automatically generating scene components and forming scene component combinations. This eliminates the need for manual editing by the user, significantly reducing labor and time costs and improving component generation efficiency. On the other hand, users can input target text according to their needs and preferences, ultimately generating scene component combinations corresponding to that text content. These generated scene component combinations are used to present the input target text, resulting in virtual models in the game scene, such as text walls and pixelated text, enriching the game scene and meeting users' personalized needs. Attached Figure Description

[0010] Figure 1 This diagram illustrates the game editing scene and scene component selection control in this exemplary embodiment; Figure 2 A schematic diagram illustrating the perspective of setting the game editing scene in this exemplary embodiment; Figure 3A A schematic diagram illustrating the God's-eye view in this exemplary embodiment is shown; Figure 3B A schematic diagram illustrating the game perspective in this exemplary embodiment is shown; Figure 4 This diagram illustrates a component generation method in a game scene according to an exemplary embodiment. Figure 5 This diagram illustrates the input of target text in this exemplary embodiment. Figure 6 A flowchart illustrating the determination of scene components and information about scene components in this exemplary embodiment is shown. Figure 7 A schematic diagram of the generation queue is shown in this exemplary embodiment; Figure 8 This diagram illustrates some scene components that have been generated in this exemplary embodiment; Figure 9 This diagram illustrates all scene components that have been generated in this exemplary embodiment; Figure 10 This diagram illustrates the movement of a combination of scene components in this exemplary embodiment. Figure 11 This diagram illustrates scaling the combination of scene components in this exemplary embodiment; Figure 12 This diagram illustrates the rotation of the scene component combination in this exemplary embodiment; Figure 13 This diagram illustrates the system architecture of the operating environment for this exemplary embodiment. Figure 14 This diagram illustrates the structure of a component generation device in a game scene according to an exemplary embodiment of the present invention. Figure 15 A schematic diagram of the structure of an electronic device in this exemplary embodiment is shown. Detailed Implementation

[0011] Exemplary embodiments of this disclosure will be described more fully below with reference to the accompanying drawings.

[0012] The accompanying drawings are schematic illustrations of this disclosure and are not necessarily drawn to scale. Some block diagrams shown in the drawings may be functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in hardware modules or integrated circuits, or in networks, processors, or microcontrollers. Implementations can be carried out in various forms and should not be construed as limited to the examples set forth herein. The features, structures, or characteristics described in this disclosure can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough description of embodiments of this disclosure. However, those skilled in the art will recognize that one or more specific details may be omitted when implementing the technical solutions of this disclosure, or other methods, components, apparatuses, steps, etc., may be used to replace one or more specific details.

[0013] Incorporating diverse components into game scenes can enrich the gameplay and enhance the player experience. One such component is a text wall, which displays text content. For example, text shapes can be formed from elements within the game scene to create a text wall. However, this requires manual editing and piecing together of each part of the text using elements within the game scene, which is time-consuming. Furthermore, each time a new text wall is generated, these manual operations must be performed, resulting in low efficiency.

[0014] In view of the above problems, the exemplary embodiments of this disclosure provide a component generation method in a game scene, which can improve the generation efficiency of components such as text walls.

[0015] In this exemplary embodiment, a graphical user interface (GUI) can be displayed on a terminal device. The terminal device can be a mobile phone, personal computer, tablet computer, smart wearable device, game console, etc., and has a display function capable of displaying a GUI. The GUI can include the screen of the terminal device's operating system, such as the desktop, system settings interface, application interface, etc. When the terminal device runs a game program, the GUI can display the game editing scene provided by the running game program. This game program can be the main game program, which provides game scene editing functions (such as a built-in game editor). When the user uses this function, they can enter the game editing scene. Alternatively, the game program can also be a game scene editing program associated with the main game program, such as a game editor that can run independently without relying on the main game program. The user can choose to create a new game scene and edit it, or they can choose to edit an existing game scene. When the user uses the game program to edit the game scene, refer to... Figure 1As shown, the graphical user interface displays the game editing scene to be edited, as well as multiple scene component selection controls. The game editing scene can include the scene background and generated components. The scene component selection controls can include controls such as "block component," "cylinder component," and "semi-cylinder component." When the user uses these controls, such as clicking the "block component" control, the corresponding block component can be generated in the game editing scene.

[0016] This exemplary implementation supports player-customized scene editing; therefore, the term "user" in this document can refer to game developers (such as artists) or players.

[0017] In one implementation, a virtual camera can be set up in the game editing scene. A virtual camera is a tool in the game program that simulates a real camera to capture game scene footage. It can be set up anywhere in the game editing scene and capture the game scene from any perspective; that is, the virtual camera can have any pose in the game scene, which can be fixed or dynamically changing. Furthermore, any number of virtual cameras can be set up in the game editing scene, and different virtual cameras can capture different game scene footage.

[0018] refer to Figure 2 As shown, the game editing scene can present two different perspectives: the God's-eye view and the game's perspective. The God's-eye view refers to observing the game editing scene from a third-person perspective, as shown in the reference... Figure 3A As shown, in a God's-eye view, users in the game editing scene can directly control a virtual camera to move the viewpoint without controlling the game character. The game perspective refers to observing the game editing scene from a first-person viewpoint. Figure 3B As shown, from a game perspective, the user can control a game character in the game editing scene. This game character can be linked to a virtual camera, meaning 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 moves the game character, the virtual camera moves synchronously, thus changing the viewpoint. From a top-down or game perspective, the game editing scene can include virtual joysticks, up / down controls, etc., which the user can use to move the virtual camera or the game character.

[0019] The game program provides multiple different scene components, such as... Figure 1The scene component selection controls are shown below. Scene components are virtual models that make up a game scene; they can be objects, people, or parts of objects or people. The scene components provided by the game program can include basic scene components and combinations of basic scene components. Basic scene components are indivisible scene components and can be considered the smallest units that make up a game scene. For example, in a 3D game scene, basic scene components can include block components, cuboid components, cylinder components, sphere components, etc. When a user edits a basic scene component, the information of the entire basic scene component is changed; it is not possible to change only a part of the basic scene component's information. A combination of basic scene components is a scene component composed of multiple basic scene components. For example, a block component or cuboid component can be combined onto the circular surface of a cylinder component to form a roller-shaped scene mechanism; this scene mechanism is a combination of basic scene components.

[0020] In one implementation, the game program may come with multiple different scene components, which may be pre-configured and stored in the game program by artists, allowing players to easily use these scene components for scene editing.

[0021] In one implementation, players can pre-configure scene components. Players can create scene components not originally present in the game program by modeling them in the game's scene editing interface or other editing interfaces. Player-configured scene components can include basic scene components and combinations of basic scene components. For example, if a player configures a scene component as an indivisible whole, then that scene component is a basic scene component; otherwise, it is a combination of basic scene components. Player-configured scene components can be used only by the player or shared with other players.

[0022] When pre-configuring scene components, one or more settings such as size, position, orientation, color, texture, and shape can be configured. This allows users to directly access these configured settings when using the scene components in the game's editing scene, making it very convenient and efficient. Of course, users can also adjust the configured settings within the scene components, such as modifying one or more of the aforementioned settings, to better suit their needs and preferences.

[0023] Figure 4 An exemplary flow of a component generation method in a game scene is shown, which may include the following steps S410 to S440: Step S410: Display the graphical user interface provided by the game program. The graphical user interface displays the game editing scene to be edited and multiple scene component selection controls. The scene component selection controls are used to respond to and generate corresponding scene components in the game editing scene according to the operation instructions. Step S420: Provide a text input field in the graphical user interface and accept target text input based on the text input field; Step S430: Divide the target text into multiple text blocks and determine the scene components and scene component information corresponding to the text blocks; Step S440: Based on the information of the scene component corresponding to the text block, generate the scene component corresponding to the text block in the game editing scene to form a combination of scene components corresponding to the target text.

[0024] A scene component assembly is a composite virtual model formed by multiple scene components, and can be viewed as a model itself. A scene component assembly is a virtual model used to present target text within a game scene. There is a correspondence between the scene component assembly and the target text. This correspondence can be manifested in the fact that they are identical in text content, or in the fact that the scene component assembly is a component ultimately generated in response to an instruction to input the target text; that is, the scene component assembly is the result of modeling the target text.

[0025] The scene component assembly can be a wall or wall-like component, such as a text wall, or a three-dimensional text model, such as a three-dimensional text font with a certain thickness. This disclosure does not specifically limit the shape of the scene component assembly. For example, at least one face of the scene component assembly is used to present the target text. This face can be a flat plane, such as a cuboid, where the two faces with the largest surface areas can be used to present the target text. Alternatively, the face can be a non-flat surface, such as the coordinates of the various scene components on the normal axis of this face not being completely identical, presenting an effect of certain undulations on the face of each scene component, thus creating a strong visual sense of three-dimensionality.

[0026] based on Figure 4 The method offers two approaches. First, it provides a scheme for generating scene component combinations (i.e., virtual models) based on input text. The system determines the corresponding scene components and their information based on the text blocks within the input target text, automatically generating scene components and forming scene component combinations. This eliminates the need for manual editing by the user, significantly reducing labor and time costs and improving component generation efficiency. Second, users can input target text according to their needs and preferences, ultimately generating scene component combinations corresponding to that text content. These generated scene component combinations are used to present the input target text, resulting in virtual models in the game scene, such as text walls and pixelated text, enriching the game scene and meeting users' personalized needs.

[0027] The following is about Figure 4 Each step in the process will be explained in detail.

[0028] refer to Figure 4In step S410, the graphical user interface provided by the game program is displayed. The graphical user interface displays the game editing scene to be edited and multiple scene component selection controls. The scene component selection controls are used to respond to and generate corresponding scene components in the game editing scene according to the operation instructions.

[0029] The game editing scene to be edited can be a newly created game editing scene or an existing game editing scene. The scene component selection control can be as follows: Figure 1 As shown, but not limited to Figure 1 The scene component types are shown. When the user interacts with the scene component selection controls, the corresponding scene component can be generated in the game's scene editing interface. For example, in... Figure 1 In the game, users can press and hold the "block component" control and drag it into the game editing scene to generate the corresponding block component. Users can then edit and adjust the block component's size, position, orientation, color, texture, and shape.

[0030] Continue to refer to Figure 4 In step S420, a text input field is provided in the graphical user interface, and the target text input based on the text input field is accepted.

[0031] The text input field can be provided within the relevant game editing interface. For example, in a game editing scene, a generator option can be selected to trigger the opening of the generator interface, which can be found in [reference needed]. Figure 5 As shown, a text input field is provided. Users can input target text through this field and import it into the game editing scene. Alternatively, users can input target text through text input fields provided in other interfaces of the game program without opening the game editing scene. While inputting text, users can select a game scene, and the game program can open and load the selected game scene. Alternatively, the game program can automatically determine the target text and import it into the game editing scene.

[0032] In one implementation, the target text can be limited by factors such as the number of characters. For example, the maximum number of characters in the target text can be determined based on the size of the game scene (e.g., 6 characters) to avoid the target text being too large, resulting in excessively large sizes of the subsequently generated scene components and occupying too much space in the game scene.

[0033] In one implementation, after a user enters target text, the server can review the target text to ensure that its content meets relevant requirements.

[0034] Continue to refer to Figure 4In step S430, the target text is divided into multiple text blocks, and the scene components corresponding to the text blocks and the information of the scene components are determined.

[0035] In this context, a text block refers to a partial shape or graphic that makes up the target text. For example, if the target text is Chinese characters, it can be broken down into individual strokes, with each stroke forming a text block. Alternatively, each stroke can be broken down into squares, rectangles, triangles, or other shapes to form text blocks. Or, it can be broken down into radicals and non-radicals based on the left-right or top-bottom structure of the Chinese character, with each radical and non-radical forming a text block. Alternatively, text blocks can be divided according to pre-defined information such as size, quantity, and shape. Furthermore, for numbers (such as Arabic numerals, Roman numerals, etc.) or texts in other languages, they can also be broken down into text blocks according to strokes, character structure, etc. Therefore, this exemplary implementation can support any form of number and any target text in any language.

[0036] After obtaining the text blocks, it can be determined which scene component each text block corresponds to. For example, based on the shape of the text block, if the text block is square, the corresponding scene component is determined to be a cube component; if the text block is rectangular, the corresponding scene component is determined to be a cuboid component. Furthermore, information about the scene component corresponding to each text block can be determined, including but not limited to size, position, orientation, color, texture, and shape, so that the scene component subsequently generated based on this information can reproduce the appearance or shape effect of the text block. For example, the size of the scene component corresponding to the text block can be determined based on the size of the text block. For instance, a mapping relationship between the size of the text block and the size of the scene component can be pre-established, and the size of the scene component corresponding to the size of the text block can be calculated from this mapping relationship. The position of the scene component corresponding to the text block can be determined based on the position of the text block within the target text. The color or texture of the scene component corresponding to the text block can be determined based on the color or texture of the text block. For instance, the color of each text block can be used as the color of the corresponding scene component, or texture features can be extracted from the text block, and the texture of the scene component can be generated based on these texture features.

[0037] In one implementation, reference Figure 6 As shown, the above-mentioned process of dividing the target text into multiple text blocks and determining the scene components and scene component information corresponding to the text blocks may include the following steps S610 and S620: Step S610: Generate a text image based on the target text.

[0038] The text image can be an image formed by adding a background to the target text. The background can be a transparent background, a solid color background, a textured background, etc. The target text in the text image can use a default font or a user-defined font. For example, the target text obtained in step S410 is text information. The game program can use a default font or a user-defined font to graphically represent the target text and add a certain background to generate a text image.

[0039] In one implementation, the target color set for the target text can be obtained. (Refer to the above.) Figure 5 As shown, when a user inputs target text, they can simultaneously set the text color, which becomes the target color. Alternatively, the game program can automatically set the target color, such as determining the target color based on the color characteristics of the game scene. The target color can include one or more colors; all target text can be set to one target color, or multiple target colors can be set, such as setting different target colors for different characters.

[0040] Accordingly, the above-mentioned method of generating a text image from the target text may include the following steps: Generate a text image consisting of target text and a background. The target text in the text image is colored as the target color, and the background in the text image is either a background of another color or a transparent background.

[0041] This process involves graphically processing the target text based on its target color, such as generating pixels corresponding to the target text and determining the color values ​​of these pixels based on the target text. The background in the text image can be a color other than the target color, making the target text and background appear different colors for easy distinction. Alternatively, a transparent background can be used, so that the text image actually only contains the information of the target text, and the subsequently generated scene components can exclude the background information and only contain the text model.

[0042] By setting a target color and generating a text image with that color as the text color, the colors of the subsequently generated scene component combinations can be controlled to conform to user preferences or match the game scene.

[0043] In one implementation, effect information set for the target text can be obtained, such as information on artistic fonts, color effects, etc. Then, the target text can be graphically processed based on this effect information to form the target text in a text image, and a text image can be generated by adding a background.

[0044] Step S620: Extract multiple image blocks from the text image, use the image blocks as text blocks, and determine the scene components and scene component information corresponding to the image blocks.

[0045] In one implementation, the entire text image can be divided into multiple image blocks, which may include background image blocks. Each image block is treated as a text block (of course, the background image block may not contain text content, but for ease of understanding and explanation, it is also considered a text block). Subsequently, scene components corresponding to the text blocks are generated, forming a scene component combination. This scene component combination can present the target text information and the background information of the text image.

[0046] In one implementation, the text region of a text image can be divided into multiple image blocks. The text region can be an area composed of pixels of the target text, excluding background pixels. Therefore, the resulting multiple image blocks do not include background image blocks. Each image block is treated as a text block, and scene components corresponding to the text blocks are subsequently generated, forming a scene component combination. This scene component combination does not present the background information of the text image, but only the information of the target text. This helps reduce the number of scene components in the scene component combination and lowers overhead.

[0047] In one implementation, the component generation method may further include the following steps: Obtain resource quantification parameters for the combination of scene components.

[0048] The resource quantification parameter represents the amount of game resources used by the scene component combination. It can be quantified by the quantity of game resources, or by the data volume, memory usage, etc., of the game resources. The resource quantification parameter can be an exact value or a range. If the resource quantification parameter is a range, it means that the quantified value of the game resources used by the scene component combination should be within that range. For example, the resource quantification parameter can include the number of scene components in the scene component combination, which can be a single value or a range, representing the number or range of scene components included in the scene component combination. Users can set resource quantification parameters for scene component combinations, as described above. Figure 5 As shown, you can set the maximum number of scene components in a scene component combination (i.e., Figure 5The maximum resource usage value is 4000, indicating that the number of scene components included in the scene component combination does not exceed 4000. Alternatively, users can set resource quantification parameters for the current game scene to be edited, indicating the amount of game resources used by the game scene. Then, the resource quantification parameters of the scene component combination can be determined based on the game scene's resource quantification parameters. For example, the resource quantification parameters of the game scene can be subtracted from the resource quantification parameters of other generated models to obtain the resource quantification parameters of the scene component combination. Alternatively, the resource quantification parameters of the game scene can be multiplied by a certain ratio (representing the resource ratio allocated to the scene component combination) to obtain the resource quantification parameters of the scene component combination. Of course, the game program can also automatically determine the resource quantification parameters of the scene component combination, such as calculating the resource quantification parameters of the scene component combination based on user permissions, the amount of cached data at the game level, and the resource status of the terminal device (such as the remaining memory), or first calculating the resource quantification parameters of the game scene, and then calculating the resource quantification parameters of the scene component combination from the game scene's resource quantification parameters.

[0049] Generally, a larger resource quantification parameter indicates that more game resources can be used in the combination of scene components, meaning that the combination of scene components can contain more scene components, resulting in a more refined combination of scene components. This allows for a more refined division of the target text into text blocks, and thus a larger number of text blocks. Therefore, in one implementation, the number of text blocks can be determined based on the resource quantification parameter, and the target text can be divided into multiple text blocks according to the number of text blocks.

[0050] In one implementation, the process of generating a text image based on the target text and dividing the text region of the text image into multiple image blocks may include the following steps: Generate an initial text image of the target text according to preset image information; The initial text image is sampled based on resource quantification parameters, and the target text image is obtained based on the sampling results. The pixels of the text region in the target text image are treated as one image block, resulting in multiple image blocks.

[0051] The preset image information can be the default text image information of the game program, which may include, but is not limited to: image size, image resolution, number of image pixels, font of the target text, size of the target text, number of pixels of the target text, background form (solid color background, transparent background or textured background, etc.), etc.

[0052] For example, the preset image information includes a default number of image pixels. The game program can generate an initial text image of the target text based on this number of pixels. Then, based on the resource quantization parameters, it is determined whether the refinement of the initial text image meets the refinement requirements corresponding to the resource quantization parameters, in order to decide how to sample the initial text image. Sampling the initial text image can be downsampling or upsampling. If a relatively large resource quantization parameter is set, and the refinement of the corresponding scene component combination exceeds that of the initial text image, then the initial text image can be upsampled. If a relatively small resource quantization parameter is set, and the refinement of the corresponding scene component combination is less than that of the initial text image, then the initial text image can be downsampled. The number of text blocks can be determined based on the resource quantization parameters, and thus the number of pixels after sampling can be determined.

[0053] In one implementation, the resource quantization parameter of the scene component combination includes the number of scene components in the scene component combination, which can be a precise numerical value. The above-described sampling of the initial text image based on the resource quantization parameter, and obtaining the target text image based on the sampling result, may include the following steps: The total number of pixels after sampling is determined by using the number of scene components combined with scene components as the number of pixels in the sampled text area. The initial text image is sampled based on the total number of pixels after sampling, and the target text image is obtained based on the sampling results.

[0054] The number of pixels in the sampled text region can be equal to the number of scene components in the scene component combination. Based on the proportion of the text region in the initial text image, the total number of pixels after sampling can be calculated, such as: Total number of pixels after sampling = Number of pixels in the sampled text region / Proportion of the text region in the initial text image. When sampling the initial text image, this total number of pixels can be sampled. This allows for accurate sampling of the initial text image and control over the number of scene components in the scene component combination.

[0055] After sampling the initial text image, the resulting image is called the sampled image. If upsampling is used, the sampled image is more detailed than the initial text image. If downsampling is used, the sampled image is more blurred than the initial text image. The sampled image can be further preprocessed, such as optimizing or simplifying colors, to obtain the target text image. Alternatively, the sampled image can be used directly as the target text image.

[0056] Each pixel in the text region of the target text image can be considered a text block, which is equivalent to dividing the target text into text blocks through sampling. This division method is simple and efficient. Furthermore, the corresponding scene components and their information can be determined based on the information of each pixel in the text region of the target text image.

[0057] In one implementation, determining the scene component corresponding to the image block and the information of the scene component may include the following steps: Determine the initial size of the scene component combination based on the number of pixels in the text region of the target text image and the initial size of the scene components; If the initial size of the scene component combination is within the preset size range, then the initial size of the scene component remains unchanged; If the initial size of the scene component combination exceeds the preset size range, the initial size of the scene component is adjusted so that the initial size of the scene component combination is within the preset size range after the initial size is adjusted.

[0058] The scene components have an initial size, which can be a default size pre-configured by the game program. If the size of the scene components is not set or adjusted, this initial size is used by default; that is, when scene components are generated in the game's scene editing, their size is equal to this initial size. The number of pixels in the text area of ​​the target text image is the number of scene components in the scene component combination. Multiplying this number by the initial size of the scene components allows us to calculate the size of the scene component combination formed using the initial sizes of the scene components, denoted as the initial size of the scene component combination. It should be noted that since the scene components and scene component combinations have not yet been generated, the initial size of the scene component combination calculated here is an estimated size.

[0059] The preset size range is the allowed size range set for scene component combinations, preventing them from being too large or too small. Users can pre-set the preset size range, or the game program can automatically set it. For example, the preset size range can be determined based on the type of scene component combination or the size of the game scene. For instance, the preset size range for the width and height of a scene component combination can be set to 0-20 meters, meaning neither the width nor the height of the scene component combination can exceed 20 meters. If the initial size of the scene component combination is within the preset size range, it can remain unchanged. If the initial size exceeds the preset size range, it is adjusted. For example, if the initial size is too large, it is reduced; if it is too small, it is increased. After adjusting the initial size, it can be recalculated to ensure it remains within the preset size range. This allows for quick and accurate determination of scene component size information; the initial or adjusted size can be used as the size of subsequently generated scene components, eliminating the need for users to manually set the size each time. Furthermore, by adjusting the initial size mechanism, it is possible to ensure that the size of the subsequently generated scene component combination is within the preset size range, thereby controlling the size of the scene component combination at an appropriate level.

[0060] In one implementation, determining the scene component corresponding to the image block and the information of the scene component may include the following steps: The color of the scene component corresponding to the image block is determined based on the color of the image block.

[0061] In this context, each pixel within the text region of the target text image can be an image patch, with each patch containing only one color value. The color value of the image patch can be used as the color of the corresponding scene component. Alternatively, the color value of the image patch can be mapped to the closest preset color to obtain the color of the corresponding scene component. The preset color can be an optional color provided by the game program for the scene components. For example, the game program can provide a set of optional colors for the scene components, such as 12 or 24 hues as primary colors, as preset colors. When determining or editing the color of a scene component, it needs to be selected from the preset colors. This ensures that scene components will not use colors other than the preset colors, which helps simplify the complexity and resource consumption of the game scene and further improves component generation efficiency. Based on the color of the image patch, the color of the scene component corresponding to the image patch can be determined conveniently and efficiently.

[0062] In one implementation, the aforementioned plurality of scene component selection controls include a first scene component selection control and a second scene component selection control. The shape of the second scene component corresponding to the second scene component selection control corresponds to the shape of the component formed by piecing together the first scene components corresponding to a preset number of the first scene component selection controls. For example, the first scene component can be a cube component or a cuboid component; the cube component is cube-shaped, and the cuboid component is cuboid-shaped. The second scene component can be a cuboid component, a stepped component, a cross component, etc., and its shape can be cuboid, stepped, cross-shaped, etc., all of which can be formed by piecing together multiple cubes or cuboids. The aforementioned determination of the scene component corresponding to the text block and the information of the scene component may include the following steps: After determining the color value of the first scene component corresponding to the text block, if there are multiple adjacent first scene components with the same color value, then these multiple adjacent first scene components with the same color value are merged into a second scene component.

[0063] For example, the first scene component is a cube component, and the second scene component is a cuboid component. If multiple cube components with the same color value correspond to adjacent positions in the same row or column within the text region of the target text image, these cube components can be merged into a cuboid component, with the cuboid component having the same color value as the cube component. This reduces the number of scene components and simplifies the process of generating scene component combinations.

[0064] In one implementation, the plurality of scene component selection controls includes a first scene component selection control, and the scene component corresponding to the text block is the first scene component corresponding to the first scene component selection control. Determining the scene component corresponding to the text block and the scene component information may include the following steps: After determining the color value of the first scene component corresponding to the text block, if there are multiple adjacent first scene components with the same color value, then these multiple adjacent first scene components with the same color value are merged into one first scene component, and the size of the merged first scene component is determined according to the number of these multiple adjacent first scene components with the same color value.

[0065] The size of the first scene component is adjustable and can be adjusted in any direction. For example, if the first scene component is a cuboid component, any one or more of its length, width, and height can be adjusted.

[0066] For example, if multiple cuboid components with the same color value correspond to adjacent positions in the same row or column within the text area of ​​a target text image, these cuboid components can be merged into a larger cuboid component. The color value of the merged cuboid component is the same as that of the original cuboid components, and its size along the merging direction is the size of the original cuboid component multiplied by the number of components merged. For instance, merging N adjacent cuboid components with the same color value along the width direction of the target text image (i.e., the width direction of the cuboid components) will result in a cuboid component whose width is N times that of the original component, while its length and height can remain unchanged. This also reduces the number of scene components, simplifying the generation process of scene component combinations.

[0067] In one implementation, a virtual camera is provided in the game editing scene to capture and display the current view of the game editing scene in real time. Determining the scene component corresponding to the text block and the information of the scene component may include the following steps: The reference point position for assembling scene components is determined based on the pose of the virtual camera; The position of the scene component corresponding to the text block is determined based on the relative position of the scene component in the scene component group and the position of the reference point.

[0068] The scene component assembly has a certain volume. When determining the position of the scene component assembly in the game editing scene, a reference point can be selected within the scene component assembly. By determining the position of the reference point, the position of each scene component in the scene component assembly (i.e., the position of the scene component) can be determined. The reference point can be the center point of the scene component, any corner point, or the center point of any edge, etc.

[0069] The reference point position for the scene component assembly is determined based on the pose of the virtual camera, ensuring that the reference point is positioned appropriately within the virtual camera's field of view so that the user can see the entire scene component assembly. More specifically, this can be done based on the input target text or when determining the generation of the scene component assembly (e.g., in...). Figure 5 (Enter text in the input field and click "Generate") The pose of the virtual camera determines the reference point position for the combination of scene components.

[0070] For example, the reference point can be the center point of the scene component. The optical axis direction can be determined based on the pose of the virtual camera, and the reference point position can be determined to be located along the optical axis direction. The distance between the reference point position and the virtual camera (distance along the optical axis direction) can also be determined based on the size of the scene component assembly, so that the entire scene component assembly can be displayed in the virtual camera's field of view.

[0071] Based on the reference point position, the position of each scene component can be determined according to its relative position within the scene component combination. The relative position can be an offset from the reference point; adding the relative position to the reference point position calculates the scene component's position. This determines suitable generation positions for scene components, allowing users to directly see scene components and scene component combinations within the game editing scene when generating scene components and scene component combinations.

[0072] Continue to refer to Figure 4 In step S440, based on the information of the scene component corresponding to the text block, the scene component corresponding to the text block is generated in the game editing scene to form a combination of scene components corresponding to the target text.

[0073] The process of generating scene components can include: generating scene component objects, which can be a collection of game resources for the scene components, scene component information (such as related parameters), and related code; loading the scene component objects in the game editing scene, which can be represented by rendering the scene components. After generating scene components corresponding to all text blocks, all scene components are combined to form a scene component composition.

[0074] In one implementation, generating scene components corresponding to text blocks in the game editing scene based on the information of scene components corresponding to text blocks, and forming a combination of scene components corresponding to the target text, may include the following steps: Add the generation task of the scene component combination to the generation queue; When the task of generating scene component combinations is executed, the scene component corresponding to the text block is generated in the game editing scene based on the information of the scene component corresponding to the text block, forming a scene component combination corresponding to the target text.

[0075] Among them, the generation queue can be referenced. Figure 7As shown, the system can include one or more generation tasks. These tasks can be generation tasks for scene component combinations (such as pixel text) or generation tasks for other models. In the generation queue, each generation task can be arranged according to its creation time or the time it was added to the queue, and executed in the ordered order. Of course, the user can also specify or adjust the order of arrangement or execution of each generation task. For example, the user can input a priority command for a certain generation task, and the game program can advance the execution order of that task, such as setting it as the next task. The generation queue can also display the status of each generation task, such as waiting, executing, or completed. Based on the execution order in the generation queue, when the generation task for scene component combinations is reached, step S440 can be executed. This ensures that the various models in the game scene are generated in an orderly manner. Even if the user frequently inputs commands to generate models in a short period (such as commands to import target text), it can prevent the game program from loading too much content and causing lag. Furthermore, displaying relevant information about the generation tasks in the generation queue visualizes the background processing of component generation, which is beneficial for user understanding.

[0076] refer to Figure 7 As shown, the generation queue displays the generation time or completion time of each task, as well as the resource quantization parameters of the components within each task. For example, the resource quantization parameter for the first pixel of text is 4000. Users can delete tasks by operating the delete control (the trash can icon in the image), or trigger the generation process of the corresponding components by operating the "Generate to Scene" control.

[0077] In one implementation, a virtual camera is provided in the game editing scene to capture and display the current view of the game editing scene in real time. The scene component that generates the text block in the game editing scene may include the following steps: Generate scene components corresponding to text blocks within the field of view of the virtual camera.

[0078] In this design, scene components can be rendered simultaneously during their generation. The generated locations of these scene components are placed within the virtual camera's field of view, allowing users to see them being generated.

[0079] In one implementation, generating the scene component corresponding to the text block within the field of view of the virtual camera may include the following steps: Within the field of view of the virtual camera, on a plane perpendicular to the optical axis of the virtual camera and at a preset distance from the virtual camera, generate scene components corresponding to the text blocks.

[0080] The plane perpendicular to the optical axis of the virtual camera is the plane directly facing the camera's field of view. The distance between this plane and the virtual camera (specifically, the distance between the plane and the camera's optical center) is a preset distance, which can be determined based on experience, the size of the game scene, or the size of the scene component assembly. For example, the width and height of the scene component assembly may not exceed 20 meters, and the preset distance could be 50 meters. After determining the plane perpendicular to the virtual camera's optical axis and at the preset distance, each scene component can be generated on this plane, meaning each scene component is tangent to or intersects this plane. This allows the scene component assembly to be placed within the virtual camera's field of view, and its size within the view is appropriate—neither filling the entire screen nor appearing too small.

[0081] In one implementation, generating the scene component corresponding to the text block in the game editing scene based on the information of the scene component corresponding to the text block may include the following steps: Determine the generation order of scene components corresponding to different text blocks, wherein the generation order of scene components corresponding to at least some text blocks is different from the generation order of scene components corresponding to other text blocks; Based on the information of the scene components corresponding to the text blocks, and in accordance with the generation order of the scene components corresponding to the text blocks, the scene components corresponding to the text blocks are generated in the game editing scene.

[0082] In this context, the generation order of scene components corresponding to all text blocks is not entirely the same; that is, all scene components are generated in a certain order and are not generated simultaneously. The generation order of scene components corresponding to different text blocks can be randomly determined based on the game program's processing capabilities. For example, when generating scene components, the game program can run M threads in parallel, thus generating M scene components simultaneously. The scene components corresponding to each text block can be divided into groups of M, with each group having the same generation order. Alternatively, the scene components corresponding to each text block can be divided into M sets, with the generation order of scene components within each set set according to the sequence 1, 2, 3, ...

[0083] Given a defined generation order for scene components, each component can be generated sequentially, making the generation process more orderly and preventing the game program from loading too much data at once.

[0084] In one implementation, generating the scene component corresponding to the text block in the game editing scene based on the information of the scene component corresponding to the text block and according to the generation order of the scene components corresponding to the text block may include the following steps: Within the current field of view, information about the scene components corresponding to the text blocks is dynamically displayed, and the process of generating the scene components corresponding to the text blocks in the game editing scene according to the generation order of the scene components corresponding to the text blocks is performed; the current field of view is the image formed by the game editing scene captured by a virtual camera set in the game editing scene.

[0085] refer to Figure 8 and Figure 9 As shown, the process of generating scene components can be dynamically displayed within the current view. For example, initially, a screen without any generated scene components is displayed; this screen can contain only the background of the game editing scene or other generated models. Subsequently, the generated scene components are gradually displayed. Figure 8 The screen shows a partial view of the generated scene components; finally, when all scene components have been generated, a complete scene component assembly is formed, such as... Figure 9 As shown, the scene components are combined in the form of text walls, pixel text, etc. This allows users to see the complete generation process, avoiding meaningless waiting during generation and giving them a stronger sense of the process, resulting in a better user experience.

[0086] In one implementation, the process of dynamically displaying information about the scene components corresponding to the text blocks within the current field of view, and generating the scene components corresponding to the text blocks in the game editing scene according to the generation order of the scene components corresponding to the text blocks, may include the following steps: In response to field of view adjustment commands, control and adjust at least one of the following information of the virtual camera: position, orientation, focal length, and field of view. The adjusted viewpoint is generated by capturing game editing scenes using the adjusted virtual camera. In the adjusted view, the information of the scene components corresponding to the text blocks is dynamically displayed, and the process of generating the scene components corresponding to the text blocks in the game editing scene according to the generation order of the scene components corresponding to the text blocks is performed.

[0087] The location of scene components is fixed within the game's editing scene. During the scene component generation process, the view can be adjusted using view adjustment commands. Specifically, when a view adjustment command is generated, the game program can control the virtual camera to adjust the view, displaying the scene component generation process from different perspectives.

[0088] Field of view adjustment commands can be user-inputted or automatically generated by the game program. For example, during the generation of scene components, the user can adjust the virtual camera's field of view, including moving the virtual camera, rotating it to change its direction, adjusting its focal length or field of view to change the center position or size of the field of view, and so on. For instance, if a user wants to observe a scene component up close, they can move the virtual camera closer to it. Alternatively, the game program can automatically adjust the virtual camera according to pre-set logic, such as controlling the virtual camera to rotate around the scene component to achieve a 360-degree dynamic display effect. This enriches the display effects of the dynamic display generation process and further enhances the user experience.

[0089] In one implementation, during the process of dynamically displaying information about scene components corresponding to text blocks within the current view frame, and generating scene components corresponding to text blocks in the game editing scene according to the generation order of the scene components corresponding to the text blocks, the component generation method may further include the following steps: Lock the operation of adding or editing components in the game editing scene to prevent the addition or editing of components in the game editing scene.

[0090] Adding components refers to adding new components to the game editing scene, while editing components refers to editing existing components in the game editing scene. During the generation of scene components, these two types of operations can be locked, preventing the addition or editing of components. For example, the controls for adding or editing components can be set to an inoperable state, such as being grayed out or having a prohibition icon added to them, preventing users from clicking or performing other operations. Alternatively, the controls can be hidden, making them unusable. Or, the control's appearance can remain unchanged, but the game program can prevent the user from executing the addition or editing operation. This could be done by discarding the operation information or displaying a prompt such as "This operation is currently unavailable."

[0091] By locking these two operations, on the one hand, conflicts can be prevented between information or information updates generated by adding or editing components and the scene components being generated. For example, when a user adds or edits a component, it might occupy the space of a scene component that is being generated. Locking these two operations can prevent this from happening. On the other hand, if scene component generation and component addition or editing are performed simultaneously, the game program may load too much data at the same time, making the processing task too heavy and potentially causing lag. Locking these two operations allows the game program to primarily perform the task of generating scene components, ensuring the smoothness of the generation process.

[0092] In one implementation, after the scene component combination is generated, the lock on the two operations can be released.

[0093] In one implementation, the information of the scene component may include at least one of the following: size, position, orientation, color, texture, and shape. Generating the scene component corresponding to the text block in the game editing scene based on the information of the scene component corresponding to the text block may include the following steps: The corresponding editing instructions are invoked based on the information of the scene components. These editing instructions are pre-provided by the game program. Based on the above editing instructions, generate scene components corresponding to the text blocks in the game editing scene.

[0094] After determining the scene component corresponding to the text block, the various information of the scene component may be null (e.g., the game program will not set a default position for the scene component; if the position is not determined, the position value will be null) or default value (e.g., the game program can set an initial size for the scene component, which is the default size). After further determining the information of the scene component based on each text block, the information of the scene component needs to be assigned to the object of the scene component, that is, changing the original null or default value. This process can be achieved by calling the editing command.

[0095] Editing commands may include, but are not limited to: scaling commands, used to adjust the size of scene components; moving commands, used to change the position of scene components; rotating commands, used to change the orientation of scene components; color editing commands, used to adjust the color of scene components; texture editing commands, used to adjust the texture of scene components; and shape adjustment commands, used to adjust the shape of scene components, such as adjusting scene components to a static shape, or a dynamic shape with automatically changing transparency, or a dynamic shape that periodically disappears and reappears, or a rotating dynamic shape, etc.

[0096] Editing commands can be made available to users, meaning users can manually execute one or more of the aforementioned editing commands. If users generate scene components using manually executed editing commands, a significant amount of manual work is required. In this exemplary embodiment, the game program can automatically invoke and execute the necessary editing commands based on the scene component information to quickly generate the component. Furthermore, the user-manual editing commands and the game program-automated editing commands can come from the same instruction set, eliminating the need for two separate instruction sets for user manual operations and game program automatic operations, thus reducing overhead.

[0097] In this exemplary embodiment, after inputting the target text, it typically takes only a few seconds to tens of seconds (depending on the performance of the terminal device or server, resource allocation, etc.) to generate the corresponding scene component combination, while manual editing and modeling generally takes several hours. Therefore, this exemplary embodiment can significantly reduce component generation time and improve component generation efficiency.

[0098] After creating a scene component group corresponding to the target text, overall operations such as moving, scaling, and rotating the scene component group are allowed. The following sections explain these three operations: Mobile operation In one implementation, after forming a combination of scene components corresponding to the target text, the component generation method may further include the following steps: In response to a move operation on the scene component group, move the position of the scene component group in the game editing scene.

[0099] Users can move scene component groups as a whole. For example, they can click, double-click, or long-press any or specific position in the scene component group to select the entire scene component group, and then move it to other positions in the game editing scene by dragging or other operations.

[0100] refer to Figure 10 As shown, the game editing scene can display three axes of the world coordinate system: the x-axis, y-axis, and z-axis. Scene component combinations can be moved along any one or more axes. During movement, the projected positions of the scene component combinations can also be displayed on the three axes, such as by highlighting them or displaying them in other colors, or as... Figure 10 As shown, the coordinates on one or more axes are displayed, allowing users to see the position of scene components in different directions, making it easier for users to move them accurately to the target location.

[0101] Scaling operation

[0102] In one implementation, after forming a combination of scene components corresponding to the target text, the component generation method may further include the following steps: Responding to scaling operations on the scene component composition, change the size of the scene component composition.

[0103] Users can zoom in and out of scene component groups as a whole. For example, they can click, double-click, or long-press any or specific position in the scene component group to select the entire scene component group, and then zoom in to the desired size by splitting or pinching their fingers.

[0104] In one implementation, reference Figure 11As shown, the game editing scene can display three axes of the reference coordinate system for the scene component assembly. To distinguish them from the three axes of the world coordinate system, the three axes of the reference coordinate system are denoted as the x' axis, y' axis, and z' axis. The above-mentioned response to scaling operations on the scene component assembly, changing the size of the scene component assembly, can include the following steps: If the scene component group is set to three-axis scaling, the size of the scene component group will change proportionally on the three axes in response to the scaling operation. If the scene component group is set to planar scaling, the size of the scene component group will change within the preset plane in response to scaling operations along the preset plane; the preset plane is a plane formed by two of the three axes. If the scene component composition is set to single-axis scaling, the size of the scene component composition will change on one of the three axes in response to a scaling operation along that axis.

[0105] Among them, three-axis scaling, planar scaling (i.e., dual-axis scaling), and single-axis scaling are three scaling methods set for scene component combinations. The scaling method can be set individually for scene component combinations, or the scaling method can be set for the game scene, in which case all models in the game scene will use the specified method.

[0106] In three-axis scaling, any scaling operation performed by the user along any axis will proportionally scale the scene component assembly along all three axes. For example, if the user reduces the size of the scene component assembly by half along the x' axis, the size of the scene component assembly along the y' and z' axes will also be reduced by half simultaneously. This three-axis proportional scaling improves the efficiency of scaling operations, allowing users to achieve their scaling goals by scaling on a single axis instead of separately along different axes.

[0107] In planar scaling, when a user scales along a preset plane formed by two axes (such as the x'-y' plane), the scene components will scale within that preset plane without changing their size on a third axis (such as the z' axis). Scaling within the preset plane can be either proportional or non-proportional. For example, the user's scaling parameters can be mapped to the two axes of the preset plane and quantified into scaling ratios on the two axes (the scaling ratios on the two axes can be different), thereby controlling the scaling of the scene components along those two axes.

[0108] It should be understood that a preset plane can be formed using any two axes, including the x'-y' plane, x'-z' plane, and y'-z' plane, allowing scene component combinations to scale within any preset plane. Alternatively, a preset plane can be formed using fixed two axes, such as setting the preset plane to only the x'-y' plane. This allows scene component combinations to scale only within the x'-y plane, but not within the x'-z' or y'-z planes. In one implementation, the text plane of the scene component combination can be used as the preset plane. The text plane is the side used to display the target text; for example, when the scene component combination is a text wall, the wall surface is the text plane. The scene component combination can be set to scale within the text plane, but not along a third axis (the axis perpendicular to the text plane). This makes the scaling of the scene component combination more consistent with the model's positioning.

[0109] In single-axis scaling, when a user scales along one axis, the scene components will only scale along that axis, not along the other two axes. This scaling method is more flexible, allowing users to change the size ratio of the scene components across all three axes to achieve more diverse visual effects.

[0110] It should be noted that you can configure the scene component group to be scaled on any axis. Alternatively, you can configure it to only allow scaling on one or two specific axes. For example, if you configure the scene component group to only scale on the x' and y' axes, then scaling along the z' axis will be impossible. This allows you to impose size restrictions on specific types of scene component groups to achieve specific game scene editing purposes.

[0111] Rotation operation

[0112] In one implementation, after forming a combination of scene components corresponding to the target text, the component generation method may further include the following steps: In response to a rotation operation on the scene component group, control the scene component group to rotate.

[0113] Users can rotate the scene component group as a whole. For example, they can click, double-click, or long-press any or specific position in the scene component group to select the entire scene component group, and then control its rotation to the desired direction or angle through operations such as sliding along a specific trajectory.

[0114] In one implementation, reference Figure 12 As shown, the game editing scene can display three arcs to represent the direction of rotation, which can be denoted as yaw angle arc, pitch angle arc, and roll angle arc. The above-mentioned response to a rotation operation on the scene component group, controlling the rotation of the scene component group, can include the following steps: In response to a rotation operation along any of the three arcs, the scene component assembly is controlled to rotate around the rotation axis with the normal of the plane containing that arc as the rotation axis.

[0115] The rotation axis is perpendicular to the plane containing the arc and can pass through the center point of the scene component assembly. For example, if a user rotates along the yaw angle arc, the scene component assembly can be controlled to rotate around the rotation axis using the z-axis passing through the center point of the scene component assembly. During rotation, the positions of the three arcs can remain unchanged, or any one or more arcs can rotate simultaneously. By displaying the arcs, the user can be guided to rotate in the correct direction, facilitating accurate rotation to the desired direction or angle.

[0116] The above describes three holistic operations. Furthermore, partial operations on scene component combinations are also permitted. In one implementation, after forming a scene component combination corresponding to the target text, the component generation method may further include the following steps: In response to an editing command on any scene component in the scene component assembly, adjust at least one of the following information of the scene component: size, position, orientation, color, texture, and shape.

[0117] Users can edit individual scene components within a scene component set. For example, they can select a scene component by clicking, double-clicking, or long-pressing it, and then generate editing commands through further manual operations to adjust its information. For instance, after selecting a scene component, users can change its size by spreading or pinching two fingers, drag it to move its position, slide it along a specific rotation path to change its direction, and select a different color, texture, or shape for the scene component in the game's scene editing interface. Therefore, based on the generated scene component set, users can flexibly edit and optimize the scene components, making the scene component set more suitable for their needs or preferences.

[0118] In one implementation, after forming a scene component group corresponding to the target text, associated game events can be set for the scene component group. For example, specific game events can be triggered when a game character approaches the scene component group, or the scene component group can be hidden or removed when a specific game time is reached.

[0119] In one implementation, operations related to creating or publishing a game scene (such as clicking) are performed via a terminal device. Figure 2After using the "Publish Map" control, game scene information corresponding to the game editing scene can be generated. This game scene information can be saved in a preset location, which can be a map file. This map file can save not only the game scene information but also other map information (including but not limited to screenshots, map names, logs, etc.). After the map file saves the game scene information, it can be uploaded to the server. After the server approves it, it can publish the game scene generated from the game scene information to the preset map pool. Terminal devices connected to the server can then download the corresponding game scene information from the server and generate the corresponding game scene through the game program, and then experience the game in that game scene. This method allows game scene information in the game editor to be published and experienced by other players, thereby realizing a rapid UGC (User Generated Content) function.

[0120] Figure 13 A system architecture diagram of the operating environment of this exemplary embodiment is shown. This system architecture 1300 may include a terminal device 1310 and a server 1320. The server 1320 may be a backend system providing game services; it may be a single server or a cluster of multiple servers. The terminal device 1310 and the server 1320 can be connected via wired or wireless links for data transmission and interaction. The component generation method in this exemplary embodiment may be executed entirely by the terminal device 1310, or partially by the terminal device 1310 and partially by the server 1320. For example, after a user inputs target text on terminal device 1310, terminal device 1310 sends the target text and other information set by the user to server 1320. Server 1320 can process the target text and related user instructions (such as instructions to generate components) through pre-configured logical rules or artificial intelligence engines to divide the text into blocks, determine the scene components corresponding to the text blocks and the information of the scene components, and return the text blocks, scene components and scene component information to terminal device 1310. Terminal device 1310 generates scene components based on this information and forms a combination of scene components.

[0121] Exemplary embodiments of this disclosure also provide a component generation apparatus for a game scene. (See reference...) Figure 14 As shown, the component generation device 1400 in the game scene may include the following program modules: The graphical user interface processing module 1410 is configured to display the graphical user interface provided by the running game program, and to display the game editing scene to be edited and multiple scene component selection controls in the graphical user interface. The scene component selection controls are used to respond to and generate corresponding scene components in the game editing scene according to the operation instructions. The information acquisition module 1420 is configured to provide a text input entry in the graphical user interface and accept target text input based on the text input entry; The scene component determination module 1430 is configured to divide the target text into multiple text blocks and determine the scene component corresponding to the text block and the information of the scene component. The component generation module 1440 is configured to generate scene components corresponding to text blocks in the game editing scene based on the information of scene components corresponding to text blocks, forming a combination of scene components corresponding to the target text.

[0122] In one implementation, generating the scene component corresponding to the text block in the game editing scene based on the information of the scene component corresponding to the text block includes: Determine the generation order of scene components corresponding to different text blocks, wherein the generation order of scene components corresponding to at least some text blocks is different from the generation order of scene components corresponding to other text blocks; Based on the information of the scene components corresponding to the text blocks, and in accordance with the generation order of the scene components corresponding to the text blocks, the scene components corresponding to the text blocks are generated in the game editing scene.

[0123] In one implementation, generating the scene component corresponding to the text block in the game editing scene based on the information of the scene component corresponding to the text block and according to the generation order of the scene components corresponding to the text block includes: Within the current field of view, information about the scene components corresponding to the text blocks is dynamically displayed, and the process of generating the scene components corresponding to the text blocks in the game editing scene according to the generation order of the scene components corresponding to the text blocks is performed; the current field of view is the image formed by the game editing scene captured by a virtual camera set in the game editing scene.

[0124] In one implementation, the process of dynamically displaying information about scene components corresponding to text blocks within the current field of view, and generating scene components corresponding to text blocks in the game editing scene according to the generation order of the scene components corresponding to text blocks, includes: In response to field of view adjustment commands, control and adjust at least one of the following information of the virtual camera: position, orientation, focal length, and field of view. The adjusted viewpoint is generated by capturing game editing scenes using the adjusted virtual camera. In the adjusted view, the information of the scene components corresponding to the text blocks is dynamically displayed, and the process of generating the scene components corresponding to the text blocks in the game editing scene according to the generation order of the scene components corresponding to the text blocks is performed.

[0125] In one implementation, the component generation module 1440 is further configured to: Within the current field of view, dynamically display the information of the scene components corresponding to the text blocks, and during the process of generating the scene components corresponding to the text blocks in the game editing scene according to the generation order of the scene components corresponding to the text blocks, lock the operation of adding or editing components in the game editing scene to prevent the addition or editing of components in the game editing scene.

[0126] In one implementation, the information of the scene component includes at least one of the following: size, position, orientation, color, texture, and shape. The above-mentioned generation of the scene component corresponding to the text block in the game editing scene based on the information of the scene component corresponding to the text block includes: The corresponding editing instructions are invoked based on the information of the scene components. These editing instructions are pre-provided by the game program. Based on the editing instructions, generate scene components corresponding to the text blocks in the game editing scene.

[0127] In one implementation, the above-mentioned process of dividing the target text into multiple text blocks and determining the scene components corresponding to the text blocks and the information of the scene components includes: Generate text images based on target text; Extract multiple image blocks from the text image, use the image blocks as text blocks, and determine the scene components corresponding to the image blocks and the information of the scene components.

[0128] In one implementation, the above-mentioned extraction of multiple image blocks based on text images includes: Divide the text region of a text image into multiple image blocks.

[0129] In one embodiment, the information acquisition module 1420 is further configured to: Obtain resource quantification parameters for the combination of scene components; The above-mentioned method of generating text images from target text includes: Generate an initial text image of the target text according to preset image information; The initial text image is sampled based on resource quantification parameters, and the target text image is obtained based on the sampling results. The above method divides the text region of a text image into multiple image blocks, including: The pixels of the text region in the target text image are treated as one image block, resulting in multiple image blocks.

[0130] In one implementation, the resource quantization parameter of the scene component combination includes the number of scene components in the scene component combination. The above-mentioned sampling of the initial text image based on the resource quantization parameter, and obtaining the target text image based on the sampling result, includes: The total number of pixels after sampling is determined by using the number of scene components combined with scene components as the number of pixels in the sampled text area. The initial text image is sampled based on the total number of pixels after sampling, and the target text image is obtained based on the sampling results.

[0131] In one implementation, the determination of the scene component corresponding to the image patch and the information of the scene component includes: Determine the initial size of the scene component combination based on the number of pixels in the text region of the target text image and the initial size of the scene components; If the initial size of the scene component combination is within the preset size range, then the initial size of the scene component remains unchanged; If the initial size of the scene component combination exceeds the preset size range, the initial size of the scene component is adjusted so that the initial size of the scene component combination is within the preset size range after the initial size is adjusted.

[0132] In one implementation, the determination of the scene component corresponding to the image patch and the information of the scene component includes: The color of the scene component corresponding to the image block is determined based on the color of the image block.

[0133] In one embodiment, the information acquisition module 1420 is further configured to: Get the target color set for the target text.

[0134] The above-mentioned method of generating text images from target text includes: Generate a text image consisting of target text and a background. The target text in the text image is colored as the target color, and the background in the text image is either a background of another color or a transparent background.

[0135] In one implementation, the plurality of scene component selection controls include a first scene component selection control and a second scene component selection control. The shape of the second scene component corresponding to the second scene component selection control corresponds to the shape of the component formed by splicing together the first scene components corresponding to a preset number of the first scene component selection controls. The scene component corresponding to the text block is the first scene component.

[0136] The above-mentioned determination of the scene component corresponding to the text block and the information of the scene component includes: After determining the color value of the first scene component corresponding to the text block, if there are multiple adjacent first scene components with the same color value, then the multiple adjacent first scene components with the same color value are merged into a second scene component.

[0137] In one implementation, the plurality of scene component selection controls includes a first scene component selection control, and the scene component corresponding to the text block is the first scene component corresponding to the first scene component selection control.

[0138] The above-mentioned determination of the scene component corresponding to the text block and the information of the scene component includes: After determining the color value of the first scene component corresponding to the text block, if there are multiple adjacent first scene components with the same color value, then the multiple adjacent first scene components with the same color value are merged into one first scene component, and the size of the merged first scene component is determined according to the number of multiple adjacent first scene components with the same color value.

[0139] In one implementation, the first scene component is a block component, and the shape of the block component is a cube.

[0140] In one implementation, a virtual camera is provided in the game editing scene to capture and display the current scene of the game editing scene in real time.

[0141] The scene components that generate text blocks in the game editing scene include: Generate scene components corresponding to text blocks within the field of view of the virtual camera.

[0142] In one implementation, the scene component that generates the text block corresponding to the virtual camera's field of view includes: Within the field of view of the virtual camera, on a plane perpendicular to the optical axis of the virtual camera and at a preset distance from the virtual camera, generate scene components corresponding to the text blocks.

[0143] In one implementation, the aforementioned determination of the scene component corresponding to the text block and the information of the scene component includes: The reference point position for assembling scene components is determined based on the pose of the virtual camera; The position of the scene component corresponding to the text block is determined based on the relative position of the scene component in the scene component group and the position of the reference point.

[0144] In one implementation, the process of generating scene components corresponding to text blocks in a game editing scene based on the information of scene components corresponding to the text blocks, forming a combination of scene components corresponding to the target text, includes: Add the generation task of the scene component combination to the generation queue; When the task of generating scene component combinations is executed, the scene component corresponding to the text block is generated in the game editing scene based on the information of the scene component corresponding to the text block, forming a scene component combination corresponding to the target text.

[0145] In one embodiment, the component generation device 1400 in the game scene may further include a model editing module, configured to: After the component generation module 1440 forms a scene component combination corresponding to the target text, in response to the movement operation of the scene component combination, the position of the scene component combination in the game editing scene is moved.

[0146] In one embodiment, the component generation device 1400 in the game scene may further include a model editing module, configured to: After the component generation module 1440 forms a scene component combination corresponding to the target text, the size of the scene component combination is changed in response to the scaling operation of the scene component combination.

[0147] In one implementation, the game editing scene displays the three axes of a reference coordinate system for the combination of scene components.

[0148] The above-mentioned response to scaling operations on the scene component composition, changing the size of the scene component composition, includes: If the scene component group is set to three-axis scaling, the size of the scene component group will change proportionally on the three axes in response to the scaling operation. If the scene component group is set to planar scaling, the size of the scene component group will change within the preset plane in response to scaling operations along the preset plane; the preset plane is a plane formed by two of the three axes. If the scene component composition is set to single-axis scaling, the size of the scene component composition will change on one axis in response to a scaling operation along one of the three axes.

[0149] In one embodiment, the component generation device 1400 in the game scene may further include a model editing module, configured to: After the component generation module 1440 forms a scene component combination corresponding to the target text, it controls the scene component combination to rotate in response to the rotation operation of the scene component combination.

[0150] In one implementation, the game editing scene displays three arcs to indicate the direction of rotation.

[0151] The above-mentioned response to a rotation operation on the scene component assembly, controlling the scene component assembly to rotate, includes: In response to a rotation operation along any of the three arcs, the scene component assembly is controlled to rotate around the rotation axis with the normal of the plane containing any arc as the rotation axis.

[0152] In one embodiment, the component generation device 1400 in the game scene may further include a model editing module, configured to: After the component generation module 1440 forms a combination of scene components corresponding to the target text, in response to an editing instruction for any scene component in the combination of scene components, at least one of the following information of the scene component is adjusted: size, position, orientation, color, texture, and shape.

[0153] The specific details of each part of the above-mentioned device have been described in detail in the method section of the implementation plan. For any undisclosed details, please refer to the implementation plan of the method section, and therefore will not be repeated here.

[0154] Exemplary embodiments of this disclosure also provide a computer-readable storage medium that can be implemented as a program product including program code, which, when run on an electronic device, causes the electronic device to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of this disclosure. In an alternative embodiment, the program product can be implemented as a portable compact disc read-only memory (CD-ROM) including program code and can run on an electronic device, such as a personal computer. However, the program product of this disclosure is not limited thereto. In this document, the readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0155] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0156] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various 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, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.

[0157] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0158] Program code for performing the operations of this disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing devices can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0159] Exemplary embodiments of this disclosure also provide an electronic device, such as the terminal device 1310 or server 1320 described above. The electronic device may include a processor and a memory. The memory stores executable instructions of the processor, such as program code. The processor executes the executable instructions to perform the methods of this exemplary embodiment. Furthermore, the electronic device may also include a display for displaying a graphical user interface.

[0160] The following is for reference. Figure 15 The electronic device is illustrated by way of a general-purpose computing device. It should be understood that... Figure 15 The electronic device 1500 shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.

[0161] like Figure 15 As shown, the electronic device 1500 may include: a processor 1510, a memory 1520, a bus 1530, an I / O (input / output) interface 1540, a network adapter 1550, and a display 1560.

[0162] Memory 1520 may include volatile memory, such as RAM 1521 and cache unit 1522, and may also include non-volatile memory, such as ROM 1523. Memory 1520 may also include one or more program modules 1524, such program modules 1524 including, but not limited to: 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 module 1524 may include the modules in the above-described apparatus.

[0163] Bus 1530 is used to connect different components of electronic device 1500 and may include a data bus, an address bus and a control bus.

[0164] Electronic device 1500 can communicate with one or more external devices 1600 (such as keyboard, mouse, external controller, etc.) through I / O interface 1540.

[0165] Electronic device 1500 can communicate with one or more networks via network adapter 1550. For example, network adapter 1550 can provide mobile communication solutions such as 3G / 4G / 5G, or wireless communication solutions such as wireless LAN, Bluetooth, and near-field communication. Network adapter 1550 can communicate with other modules of electronic device 1500 via bus 1530.

[0166] Electronic device 1500 can display a graphical user interface, such as displaying a game editing scene, through monitor 1560.

[0167] although Figure 15 As not shown in the diagram, other hardware and / or software modules may also be configured in the electronic device 1500, including but not limited to: a display, microcode, device driver, redundant processor, external disk drive array, RAID system, tape drive, and data backup storage system.

[0168] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to exemplary embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0169] Those skilled in the art will understand that various aspects of this disclosure can be implemented as systems, methods, or program products. Therefore, various aspects of this disclosure can be embodied in entirely hardware implementations, entirely software implementations (including firmware, microcode, etc.), or implementations combining hardware and software aspects, collectively referred to herein as “circuit,” “module,” or “system.” Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0170] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is defined only by the appended claims.

Claims

1. A method for generating components in a game scene, characterized in that, The method includes: The graphical user interface provided by the game program is displayed, and the game editing scene to be edited and multiple scene component selection controls are displayed in the graphical user interface. The scene component selection controls are used to respond to and generate corresponding scene components in the game editing scene according to the operation instructions. The graphical user interface provides a text input field and accepts target text input through the text input field; The target text is divided into multiple text blocks, and the scene components corresponding to the text blocks and the information of the scene components are determined. Based on the information of the scene component corresponding to the text block, a scene component corresponding to the text block is generated in the game editing scene to form a scene component combination corresponding to the target text; at least one face of the scene component combination is used to present the target text.

2. The method according to claim 1, characterized in that, The step of generating the scene component corresponding to the text block in the game editing scene based on the information of the scene component corresponding to the text block includes: The generation order of scene components corresponding to different text blocks is determined, wherein the generation order of scene components corresponding to at least some text blocks is different from the generation order of scene components corresponding to other text blocks; Based on the information of the scene component corresponding to the text block, and in accordance with the generation order of the scene component corresponding to the text block, the scene component corresponding to the text block is generated in the game editing scene.

3. The method according to claim 2, characterized in that, The step of generating the scene component corresponding to the text block in the game editing scene according to the information of the scene component corresponding to the text block and in the generation order of the scene component corresponding to the text block includes: Within the current field of view, information about the scene components corresponding to the text block is dynamically displayed, and the process of generating the scene components corresponding to the text block in the game editing scene according to the generation order of the scene components corresponding to the text block is performed; wherein, the current field of view is the image formed by the game editing scene captured by a virtual camera set in the game editing scene.

4. The method according to claim 3, characterized in that, The process of dynamically displaying information about the scene components corresponding to the text blocks within the current field of view, and generating the scene components corresponding to the text blocks in the game editing scene according to the generation order of the scene components corresponding to the text blocks, includes: In response to a field-of-view adjustment command, the virtual camera is controlled to adjust at least one of the following information: position, orientation, focal length, and field of view. The adjusted virtual camera captures the game editing scene to form the adjusted field of view; In the adjusted view, information about the scene components corresponding to the text blocks is dynamically displayed, and the process of generating the scene components corresponding to the text blocks in the game editing scene according to the generation order of the scene components corresponding to the text blocks is performed.

5. The method according to claim 3, characterized in that, Within the current field of view, the method further includes dynamically displaying information about the scene components corresponding to the text blocks, and generating the scene components corresponding to the text blocks in the game editing scene according to the generation order of the scene components corresponding to the text blocks. Lock the operation of adding or editing components in the game editing scene to prevent the addition or editing of components in the game editing scene.

6. The method according to claim 1, characterized in that, The information of the scene components includes at least one of the following: size, position, orientation, color, texture, and shape; The step of generating the scene component corresponding to the text block in the game editing scene based on the information of the scene component corresponding to the text block includes: The corresponding editing instructions are invoked based on the information of the scene components, wherein the editing instructions are instructions provided in advance by the game program; Based on the editing instructions, a scene component corresponding to the text block is generated in the game editing scene.

7. The method according to claim 1, characterized in that, The step of dividing the target text into multiple text blocks and determining the scene components corresponding to the text blocks and the information of the scene components includes: Generate a text image based on the target text; Multiple image blocks are extracted from the text image, and the image blocks are used as the text blocks to determine the scene components corresponding to the image blocks and the information of the scene components.

8. The method according to claim 7, characterized in that, The step of extracting multiple image blocks based on the text image includes: The text region of the text image is divided into the multiple image blocks.

9. The method according to claim 8, characterized in that, The method further includes: Obtain the resource quantification parameters of the scene component combination; The step of generating a text image based on the target text includes: Generate an initial text image of the target text according to preset image information; The initial text image is sampled based on the resource quantification parameters, and the target text image is obtained based on the sampling results; The step of dividing the text region of the text image into the plurality of image blocks includes: The pixels of the text region of the target text image are taken as an image block to obtain the plurality of image blocks.

10. The method according to claim 9, characterized in that, The resource quantization parameter of the scene component combination includes the number of scene components in the scene component combination; the step of sampling the initial text image based on the resource quantization parameter and obtaining the target text image based on the sampling result includes: The total number of pixels after sampling is determined by using the number of scene components combined as the number of pixels in the sampled text area. The initial text image is sampled based on the total number of pixels after sampling, and the target text image is obtained based on the sampling results.

11. The method according to claim 9, characterized in that, The determination of the scene component corresponding to the image patch and the information of the scene component include: The initial size of the scene component assembly is determined based on the number of pixels in the text region of the target text image and the initial size of the scene component. If the initial size of the scene component combination is within a preset size range, then the initial size of the scene component remains unchanged; If the initial size of the scene component assembly exceeds the preset size range, the initial size of the scene component is adjusted so that the initial size of the scene component assembly is within the preset size range after the initial size is adjusted.

12. The method according to claim 9, characterized in that, The determination of the scene component corresponding to the image patch and the information of the scene component include: The color of the scene component corresponding to the image block is determined based on the color of the image block.

13. The method according to claim 7, characterized in that, The method further includes: Get the target color set for the target text; The step of generating a text image based on the target text includes: Generate a text image consisting of the target text and a background, wherein the color of the target text in the text image is the target color, and the background of the text image is a background of another color or a transparent background.

14. The method according to claim 1, characterized in that, The plurality of scene component selection controls include a first scene component selection control and a second scene component selection control. The shape of the second scene component corresponding to the second scene component selection control corresponds to the shape of the component formed by splicing together the first scene components corresponding to the first scene component selection controls by a preset number of the first scene component selection controls. The scene component corresponding to the text block is the first scene component. The determination of the scene component corresponding to the text block and the information of the scene component include: After determining the color value of the first scene component corresponding to the text block, if there are multiple adjacent first scene components with the same color value, then the multiple adjacent first scene components with the same color value are merged into a second scene component.

15. The method according to claim 1, characterized in that, The plurality of scene component selection controls include a first scene component selection control, and the scene component corresponding to the text block is the first scene component corresponding to the first scene component selection control; The determination of the scene component corresponding to the text block and the information of the scene component include: After determining the color value of the first scene component corresponding to the text block, if there are multiple adjacent first scene components with the same color value, then the multiple adjacent first scene components with the same color value are merged into one first scene component, and the size of the merged first scene component is determined according to the number of the multiple adjacent first scene components with the same color value.

16. The method according to claim 14 or 15, characterized in that, The first scene component is a block component, and the shape of the block component is a cube.

17. The method according to claim 1, characterized in that, A virtual camera is set up in the game editing scene to capture and display the current screen of the game editing scene in real time; The process of generating the scene component corresponding to the text block in the game editing scene includes: The scene component corresponding to the text block is generated within the field of view of the virtual camera.

18. The method according to claim 17, characterized in that, The step of generating the scene component corresponding to the text block within the field of view of the virtual camera includes: Within the field of view of the virtual camera, on a plane perpendicular to the optical axis of the virtual camera and at a preset distance from the virtual camera, a scene component corresponding to the text block is generated.

19. The method according to claim 17 or 18, characterized in that, The determination of the scene component corresponding to the text block and the information of the scene component include: The reference point position of the scene component assembly is determined based on the pose of the virtual camera; The position of the scene component corresponding to the text block is determined based on the relative position of the scene component in the scene component combination and the position of the reference point.

20. The method according to claim 1, characterized in that, The step of generating the scene component corresponding to the text block in the game editing scene based on the information of the scene component corresponding to the text block, forming a scene component combination corresponding to the target text, includes: Add the generation task of the scene component combination to the generation queue; When the task of generating the scene component combination is executed, the scene component corresponding to the text block is generated in the game editing scene according to the information of the scene component corresponding to the text block, forming a scene component combination corresponding to the target text.

21. The method according to claim 1, characterized in that, After forming a combination of scene components corresponding to the target text, the method further includes: In response to a movement operation on the scene component group, the position of the scene component group in the game editing scene is moved.

22. The method according to claim 1, characterized in that, After forming a combination of scene components corresponding to the target text, the method further includes: In response to a scaling operation on the scene component assembly, the size of the scene component assembly is changed.

23. The method according to claim 22, characterized in that, The game editing scene displays the three axes of the reference coordinate system of the scene component assembly; the step of changing the size of the scene component assembly in response to a scaling operation includes: If the scene component assembly is set to three-axis scaling, then in response to the scaling operation, the size of the scene component assembly is changed proportionally on the three axes; If the scene component assembly is set to planar scaling, then in response to the scaling operation along a preset plane, the size of the scene component assembly is changed within the preset plane; the preset plane is a plane formed by two of the three axes. If the scene component assembly is set to single-axis scaling, then in response to the scaling operation along one of the three axes, the size of the scene component assembly is changed on that axis.

24. The method according to claim 1, characterized in that, After forming a combination of scene components corresponding to the target text, the method further includes: In response to a rotation operation on the scene component assembly, the scene component assembly is controlled to rotate.

25. The method according to claim 24, characterized in that, The game editing scene displays three arcs to indicate the direction of rotation; The step of controlling the scene component assembly to rotate in response to a rotation operation on the scene component assembly includes: In response to the rotation operation along any of the three arcs, the scene component assembly is controlled to rotate around the rotation axis with the normal of the plane containing any arc as the rotation axis.

26. The method according to claim 1, characterized in that, After forming a combination of scene components corresponding to the target text, the method further includes: In response to an editing instruction on any scene component in the scene component group, at least one of the following information of the scene component is adjusted: size, position, orientation, color, texture, and shape.

27. A component generation device for a game scene, characterized in that, The device includes: The graphical user interface processing module is configured to display the graphical user interface provided by the running game program, and to display the game editing scene to be edited and multiple scene component selection controls in the graphical user interface. The scene component selection controls are used to respond to and generate corresponding scene components in the game editing scene according to the operation instructions. The information acquisition module is configured to provide a text input entry in the graphical user interface and accept target text input based on the text input entry; The scene component determination module is configured to divide the target text into multiple text blocks and determine the scene component corresponding to the text block and the information of the scene component. The component generation module is configured to generate a scene component corresponding to the text block in the game editing scene based on the information of the scene component corresponding to the text block, forming a scene component combination corresponding to the target text; at least one face of the scene component combination is used to present the target text.

28. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method according to any one of claims 1 to 26.

29. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the method of any one of claims 1 to 26 by executing the executable instructions.

Citation Information

Patent Citations

  • Text data processing method and device, equipment and medium

    CN115770387A