Object generation method and device, computing equipment, storage medium and program product
By responding to object generation requests in the object generation method, determining the template identification of the target object model and obtaining random object attribute data, the problem of numerical ID and art resource occupation during the generation of blind box random props is solved, and the diversity of the target object model and efficient reuse of resources is achieved.
Patent Information
- Application Number
- CN202510042496.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-04-25
AI Technical Summary
When generating blind box random props, the prior art requires a large amount of numerical configuration and art resources, resulting in excessive numerical ID usage and larger game packages.
By responding to object generation requests, the template identification of the target object model is determined based on the object generation information carried, the random object attribute data is obtained, and the target object is generated based on the target object model and the random object attribute data is generated, so as to achieve the diversity and resource reuse of different target objects.
The use of prop numerical IDs and the number of art resources is reduced, and the diversity of the target object model and efficient reuse of resources is achieved.
Smart Images

Figure CN119883484A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an object generation method. The present application also relates to an object generation device, a computing device, a computer-readable storage medium, and a computer program product. Background Art
[0002] For the application scenario of making random props for blind boxes, a large number of performance props need to be generated (performance props refer to props that have both prop-related values and art resource expressions, such as pendant props), that is, the prop-related values need to be configured in large quantities, and the expression in the application scenario also requires a large number of art resources. In the case where one prop corresponds to one numerical ID (identifier), the numerical ID is occupied in large quantities, and the large number of art resources corresponding to each prop will also cause the game package to become larger. Summary of the invention
[0003] In view of this, the embodiment of the present application provides an object generation method to solve the technical defects existing in the prior art. The embodiment of the present application also provides an object generation device, a computing device, a computer-readable storage medium, and a computer program product.
[0004] According to a first aspect of an embodiment of the present application, there is provided a method for generating an object, comprising: In response to the object generation request, determining a template identifier corresponding to the target object model according to the object generation information carried in the object generation request; Determine the object template according to the template identifier, and generate attribute information according to the object corresponding to the object template to obtain random object attribute data; A target object is generated according to the target object model and the random object attribute data.
[0005] According to a second aspect of an embodiment of the present application, there is provided an object generation device, including: A response module, configured to respond to the object generation request and determine a template identifier of a target object type according to the object generation information carried in the object generation request; a determination module configured to determine an object template according to the template identifier, and to generate attribute information according to an object corresponding to the object template to obtain random object attribute data; The generating module is configured to generate a target object according to the template identifier and the random object attribute data.
[0006] According to a third aspect of an embodiment of the present application, there is provided a computing device, including: a memory and a processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, an object generation method is implemented.
[0007] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program / instruction, and the computer program / instruction implements an object generation method when executed by a processor.
[0008] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program / instruction, which implements an object generation method when executed by a processor.
[0009] The object generation method provided by the present application responds to an object generation request, determines a template identifier corresponding to a target object model according to object generation information carried in the object generation request, thereby determining an object template according to the template identifier, and obtains random object attribute data according to object generation attribute information corresponding to the object template, generates a target object according to the target object model and the random object attribute data, and realizes that a template identifier corresponding to a target object model can correspond to different target objects according to different random object attribute data, so that different target objects will not occupy too many identification values, and in terms of resource presentation, for a target object model, the random object attribute data can be displayed on the target object model, and the random object attribute data can also be reused on other object models, which greatly reduces the number of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 This is a schematic diagram of a scenario of an object generation method applied to a data processing system provided by an embodiment of the present application; Figure 2 is a flow chart of an object generation method provided by an embodiment of the present application; Figure 3 is a structural schematic diagram of an object generation device provided by an embodiment of the present application; Figure 4 It is a structural block diagram of a computing device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0011] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0012] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.
[0013] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.
[0014] In the present application, a method for generating an object is provided. The present application also relates to an object generating apparatus, a computing device, a computer-readable storage medium, and a computer program product, which are described in detail one by one in the following embodiments.
[0015] See also Figure 1 , Figure 1 A schematic diagram of a scenario of an object generation method applied to a data processing system provided according to an embodiment of the present specification is shown.
[0016] Specifically, the object generation method is implemented by applying a data processing system, and the data processing system includes a terminal device 102 and a server 104 .
[0017] The terminal device 102 is used to send an object generation request to the server 104; the server 104 responds to the object generation request, determines the template identifier corresponding to the target object model according to the object generation information carried in the object generation request; determines the object template according to the template identifier, and obtains random object attribute data according to the object generation attribute information corresponding to the object template; generates a target object according to the target object model and the random object attribute data, and returns the target object to the terminal device 102, and the terminal device 102 renders the target object and displays it to the user through the user interaction interface.
[0018] The terminal device 102 may include a browser, an APP (Application), or a web application such as an H5 (Hyper Text Markup Language 5, version 5 of Hypertext Markup Language) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The terminal device may be based on a software development kit (SDK) of the corresponding service provided by the server, such as based on the real-time communication (RTC) SDK development and acquisition. The terminal device may be deployed in an electronic device and may rely on the device to run or some APPs in the device to run. The electronic device may have a display screen and support information browsing, such as a personal mobile terminal such as a mobile phone, a tablet computer, a personal computer, etc. Various other types of applications may also be configured in the electronic device, such as human-computer dialogue applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0019] Server 104 can be understood as a server that provides various services, including physical servers and cloud servers, such as a server that provides communication services to multiple clients, a server for background training that supports the model used on the client, and a server that processes the data sent by the client. It should be noted that server 104 can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. Server 104 can also be a server for a distributed system, or a server combined with a blockchain. Server 104 can also be a cloud server for basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDNs), and big data and artificial intelligence platforms, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.
[0020] It is worth noting that the data processing method provided in the embodiments of this specification can be executed by the server 104. In other embodiments of this specification, the target object model can be stored in the terminal device 102, so that the terminal device 102 can also have similar functions as the server 104, thereby executing the data processing method provided in the embodiments of this specification; in other embodiments, the data processing method provided in the embodiments of this specification can also be executed jointly by the terminal device 102 and the server 104.
[0021] The object generation method provided in the embodiment of the present specification responds to an object generation request, determines a template identifier corresponding to a target object model according to object generation information carried in the object generation request, thereby determining an object template according to the template identifier, and obtains random object attribute data according to object generation attribute information corresponding to the object template, generates a target object according to the target object model and the random object attribute data, and realizes that a template identifier corresponding to a target object model can correspond to different target objects according to different random object attribute data, so that different target objects will not occupy too many identification values, and in terms of resource presentation, for a target object model, the random object attribute data can be displayed on the target object model, and the random object attribute data can also be reused on other object models, which greatly reduces the number of resources.
[0022] Figure 2 A flowchart of an object generation method provided according to an embodiment of the present application is shown, which specifically includes the following steps: Step 202: In response to the object generation request, determine a template identifier corresponding to the target object model according to the object generation information carried in the object generation request.
[0023] Among them, in the game scene or animation scene, the object can be understood as a virtual entity, element, etc., for example, the object is a virtual prop (such as weapons, equipment, consumables, etc.), a virtual character, etc.
[0024] When the object generation method is applied to the server, the server responds to the object generation request sent by the client; in this embodiment, the client can be understood as the player's gaming device or software, which is used to send requests to the server.
[0025] An object generation request can be understood as a request sent by a client to a server to request the server to generate a new game object (such as a prop); object generation information can be understood as information related to the generated object contained in the object generation request. For example, the object generation information includes task completion information of a user completing a task. The target object model related to the task is determined based on the task completion information, thereby determining the template identifier of the target object model.
[0026] The target object model can be understood as a basic object model corresponding to the object to be generated, which is determined according to the object generation information provided in the object generation request. The basic model is a 2D or 3D model, including the shape of the object. The template identifier can be understood as an identifier. The template identifier corresponds to the target object model, and the target object model corresponds to an object template. Therefore, one template identifier corresponds to one object template.
[0027] Specifically, taking the game scenario as an example, when the client sends an object generation request to generate a new game prop, the server will determine the basic object model corresponding to the game prop to be generated based on the information carried in the object generation request (such as the player's task completion information), and determine the template identifier corresponding to the specific object model.
[0028] In actual applications, suppose that in a game, when a player completes a specific task or passes a level, a new item is generated for the player to achieve a task completion reward or a level clearance reward. For example, when a player completes a specific task, an object generation request is triggered and sent to the server. This object generation request may carry object generation information (for example, object generation information includes player information, task information, etc.).
[0029] When the server receives an object generation request, it can determine the target object model based on the object generation information in the object generation request. For example, when one task corresponds to one target object model, the server can determine the template identifier corresponding to the target object model based on the task information, or can determine the template identifier corresponding to the target object model based on the player's level information (for example, higher-level players correspond to more scarce target object models).
[0030] The server uses the template identifier to determine the corresponding object template, and can obtain random object attribute data, thereby obtaining a prop instance, and adding the prop instance to the player's game inventory, so that the player can successfully obtain a new game prop.
[0031] Step 204: Determine the object template according to the template identifier, and generate attribute information according to the object corresponding to the object template to obtain random object attribute data.
[0032] Among them, the template identifier can be understood as an identifier used to uniquely identify or reference a specific object template (such as a prop template). It can be a number, a string, or any other form of unique value, which is used to find and reference the corresponding object template in the system.
[0033] An object template can be understood as a preset template that contains configurable items. For a prop template, it can include the components of a prop and multiple configurable items that can be configured (such as color, texture, etc.).
[0034] Object generation attribute information is the candidate value under the configurable item in the object template. The configurable item can be understood as the attribute that can be changed or customized in the object template. For props, it can include configurable items such as color and texture. These configurable items contain multiple candidate values, so different prop attribute data is generated according to different candidate values in the configurable items.
[0035] For example, if the configurable items of a prop template include colors, then the candidate values are the specific color values (such as red, blue, or green) under the configurable items.
[0036] In practical applications, random seeds can be used to generate random object attribute data. Alternatively, when generating objects, users can customize and select object-related attribute data through the client's user interface, allowing users to directly participate in the object attribute customization process.
[0037] A random seed can be understood as the initial value used for a random number generator. Given the same random seed, the random number generator will generate the same random number sequence.
[0038] Specifically, the corresponding object template (such as a prop template) is found according to the template identifier. The prop template contains some configurable items (such as color, texture, etc.). Based on the configurable items of the prop template, multiple candidate values (i.e., specific values of the configuration items, such as the color values of red, blue or green) can be determined.
[0039] Using a random seed as input, a specific random value can be generated for a configurable item through a random number generator within the range of multiple candidate values to obtain random object attribute data; using a random seed can ensure randomness, that is, different random object attribute data may be generated for each run, thereby achieving the effect of random props in a blind box.
[0040] In the case where users can customize object properties, an intuitive and easy-to-use operation interface can be provided on the user interaction interface of the user's corresponding client. The operation interface should include but not be limited to the following elements: property editor, classification tab (different types of properties such as color, texture, etc. are classified into categories for easy management and search), save and cancel buttons, etc. Of course, a real-time preview function can also be provided on the client to allow users to instantly see their customization results and display the target object based on the current settings. For example, the user chooses to generate a prop as a pendant, and sets the lanyard part of the pendant to be red and the pendant part of the pendant to be a crystal ball.
[0041] When the user completes the custom settings and submits them, the client will collect the selections made by the user on the operation interface, generate an object generation request, and send it to the server. The server receives the object generation request, parses it to obtain the object generation information in the object generation request, and the object generation information may include the object attribute information of the user's custom selection. The basic pendant model corresponding to the pendant is determined according to the object generation information. The pendant template corresponding to the basic pendant model contains configurable items of the lanyard part and the pendant part. Among the configurable items of the lanyard part and the pendant part, the random object attribute data consistent with the attribute data of the user's custom selection is determined to meet the user's personalized setting needs.
[0042] Suppose there is a game prop model (target object model) called a "magic ball". This "magic ball" corresponds to a prop template whose configurable items include color and texture. The optional colors are set to red, blue and green, and the texture can be selected from several preset textures.
[0043] Use a random seed (such as 12345) to generate random color and texture selection. For example, use the random seed 12345 to generate random object attribute data with a blue star pattern. Apply the random object attribute data to the game prop model to obtain a prop "magic ball" with a blue star pattern.
[0044] In one or more embodiments of the present specification, before determining the template identifier corresponding to the target object model according to the object generation information carried in the object generation request, the method further includes: Configuring a template identifier for the target object model; Determining an object template corresponding to the template identifier according to the configuration part of the target object model and the configuration items of each configuration part; According to the candidate values of the configuration items of the configuration parts, the object generation attribute information corresponding to the object template is determined.
[0045] The configuration template identifier can be understood as an identifier assigned or specified for a target object model, which is used to identify the object template corresponding to the target object model. The object template usually includes a series of configurable items that the object model should be configured with, and candidate values under each configurable item.
[0046] The configuration part can be understood as the part of the target object model that can be configured or customized. The object template can be understood as the specific template found according to the template identifier, which defines how the object model should be configured, including which configuration parts and configuration items should be included, and the possible value ranges or default values of these configuration items.
[0047] Specifically, a template identifier is selected or assigned for the target object model, and the identifier is used to indicate the object template that the object model should follow; based on the configuration parts of the target object model (for example, for a prop model of a knife, the configuration parts that need to be configured may include the handle and the blade) and the configurable items of these configuration parts (such as color, texture, etc.), an object template corresponding to the target object model is generated.
[0048] Through the candidate values of each configuration item (that is, what values these configuration items can take), the object generation attribute information corresponding to the object template can be determined, so that when the actual object is generated for the target object model later, the range of values that each configuration item can randomly take can be determined to ensure the correctness of the random object attribute data.
[0049] In one or more embodiments of the present specification, the step of generating attribute information according to the object corresponding to the object template to obtain random object attribute data includes: Determine candidate values of configuration items of each configuration part corresponding to the target object model according to the object generation attribute information corresponding to the object template; Determine the target value corresponding to the configuration item of each configuration part from the candidate values of the configuration item of each configuration part; The random object attribute data is obtained according to the target values corresponding to the configuration items of each configuration part.
[0050] The target value can be understood as the final value of the configuration item, which is determined from the candidate values by some method (such as random selection). The random object attribute data can be understood as the attribute set of the object finally generated according to the target value of each configuration item of each configuration part.
[0051] Specifically, according to the configuration items and their candidate value ranges defined in the object template, the candidate values of the configuration items of each configuration part of the target object model are determined; using a random seed, a value is randomly selected from the candidate values of the configuration items of each configuration part as the target value, and according to the target values of all configuration items, random object attribute data are combined.
[0052] Step 206: Generate a target object according to the target object model and the random object attribute data.
[0053] Among them, the random object attribute data contains the specific attribute values that the target object should have when it is instantiated or generated. These attribute values can be determined according to the random process mentioned above (such as selecting from candidate values using a random seed), or can be determined based on attribute information customized by the user.
[0054] The target object can be understood as creating or instantiating a specific target object, such as a specific prop, based on the target object model and random object attribute data.
[0055] A specific target object is generated based on a predefined target object model and a set of randomly determined attribute data. Specifically, the target object model provides the basic structure and behavior definition of the object, while the random object attribute data provides the specific attribute values that the object should have when it is generated. By combining the two, a target object with specific attributes and behaviors can be generated.
[0056] In one or more embodiments of the present specification, generating a target object according to the target object model and the random object attribute data includes: The random object attribute data is stored in a target data block using a predefined format, and a target object is generated according to the target object model and the target data block.
[0057] The predefined format can be understood as a pre-determined data storage format that specifies how to organize, arrange and store data. The target data block can be understood as a specific area or structure for storing data. In this scenario, the target data block is used to store random object attribute data, and its size and format are predefined.
[0058] Specifically, the random object attribute data is stored in the target data block using a predefined format, and the target object is generated according to the target object model and the data block; for example, when the target object is a pendant prop, the randomly generated pendant attribute data (including color, texture, texture offset and wear) is stored in the target data block according to the predefined format. The target data block size here is 64 bits (ie 8 bytes). Of course, larger data blocks can actually be used to store information.
[0059] Generate a specific widget prop according to the target object model (in this scenario, the target object model can be a widget model) and the attribute data stored in the target data block.
[0060] In actual applications, if you want to generate a specific pendant prop, a data block of the pendant is generated according to a predefined format. This data block contains a randomly selected color (such as red, represented by 6 bytes, but in fact, it may only require fewer bytes), a texture (such as a dragon pattern, also represented by 6 bytes), a texture offset (such as showing a dragon head, represented by 4 bytes) and wear (such as slight wear, represented by 4 bytes). At the same time, a random seed (such as a 9-byte value) is also generated to increase the diversity of the pendant.
[0061] Based on the target object model of the pendant and the attribute data stored in the data block, a specific pendant prop is generated. This pendant prop has randomly assigned attribute values, such as red, dragon pattern, dragon head display, and slight wear.
[0062] This pendant prop can be added to the game so that players can use or collect it in the game. Due to the use of random seeds and multiple attribute value combinations, each generated pendant can be unique, increasing the playability and attractiveness of the game.
[0063] In one or more embodiments of the present specification, generating a target object according to the target object model and the random object attribute data includes: The random object attribute data is applied to the target object model to generate a target object.
[0064] Specifically, by applying the random object attribute data to the target object model, a specific target object is generated. The random object attribute data provides the specific attribute values that the target object should have, while the target object model defines the specific framework of the target object. By combining the two, a target object with specific attributes and behaviors can be generated.
[0065] In actual applications, when the object generation method is applied to the client, the client can respond to the object generation request triggered based on the user's interactive operation on the user interaction interface, and after generating the target object, the target object can be rendered and displayed to the user through the user interaction interface.
[0066] In one or more embodiments of the present specification, when the object generation method is applied to a client, after generating the target object according to the target object model and the random object attribute data, the method further includes: The target object is rendered and displayed to the user through the user interaction interface of the client.
[0067] Specifically, by rendering the target object, the target object can be displayed on a user interaction interface of the client for the user to view and use.
[0068] The object generation method provided in the embodiment of the present specification responds to an object generation request, determines a template identifier corresponding to a target object model according to object generation information carried in the object generation request, thereby determining an object template according to the template identifier, and obtains random object attribute data according to object generation attribute information corresponding to the object template, generates a target object according to the target object model and the random object attribute data, and realizes that a template identifier corresponding to a target object model can correspond to different target objects according to different random object attribute data, so that different target objects will not occupy too many identification values, and in terms of resource presentation, for a target object model, the random object attribute data can be displayed on the target object model, and the random object attribute data can also be reused on other object models, which greatly reduces the number of resources.
[0069] In another embodiment of the present specification, the object generation method is further explained by taking the game scene generation props as an example.
[0070] A prop model (for example, a prop model corresponding to a knife, which may include knife props of different shapes (straight knives, curved knives), different colors, and different patterns) corresponds to a template identifier. A prop model contains some basic, fixed static information, and the template identifier corresponds to a prop template.
[0071] According to the prop template corresponding to the template identifier, random data can be dynamically generated and recorded in a data block; based on the prop model and the random data in the data block, all the attribute information of a prop is obtained; thus, according to all the attribute information of the prop, a prop can be rendered.
[0072] In actual applications, the user triggers an event on the game interface (for example, opening a treasure chest, completing a task, etc.) to request the generation of a random item; the user's corresponding client sends a request to generate a random item to the server (that is, the object generation request in the above embodiment), and this request may include some context information, such as user information.
[0073] After receiving the request, the server can verify the validity of the request, such as checking the user's authentication, permissions, and the legitimacy of the request. If the request is valid, the server generates a new random seed, which can be generated by a cryptographically secure random number generator to ensure its unpredictability.
[0074] The server selects a prop model (ie, the target object model in the above embodiment) according to the context information carried in the request, and determines a prop template (ie, the object template) corresponding to the prop model.
[0075] The server uses the generated random seed to generate specific prop attribute values (i.e. random object attribute data) according to the prop template. The prop attribute values can include specific values of different attribute information such as color, texture, position offset, wear, etc. The server assembles the generated prop attribute values into a 64-byte data block. The color, texture, position offset and other information of each channel are filled into the data block according to the predefined format.
[0076] The server sends the data block and the prop model to the client, and the client parses the data block and renders it according to the specific prop attribute values and prop model in the data block to generate random props.
[0077] For example, for a broadsword, the fixed model corresponding to the "broadsword" can be determined in the prop table. Through 64-bit random data, a broadsword with a red handle, a silver blade and a dragon pattern engraved on it can be generated based on this broadsword model. It can also be a broadsword with a blue handle, a gray blade and a snake pattern engraved on it, and so on.
[0078] In actual applications, a certain size of data block is taken from the prop value to record random data, so that the value table corresponding to the prop ID does not need to be configured again, and a large number of different props can be generated with one ID. In terms of resource presentation, only one prop model is needed, and random data can be displayed on the model, which greatly reduces the number of resources.
[0079] The following is explained using pendant props: S1: In terms of values, a 64-bit data size is used for the item values to record various randomly generated random data.
[0080] The pendant is divided into 3 channels. The performance of each channel can be described by color, texture, and texture offset (for example, the texture is a dragon, but the performance part does not need to show the whole dragon. Whether to show the dragon head or the dragon tail can be determined by the texture offset). The size of each configuration item is: 6 bytes for color (64 types), 6 bytes for texture (64 types), and 4 bytes for texture position (16 types), a total of 16 bytes. The total of 3 parts is 16*3=48 bytes. In addition, the wear degree of the pendant is defined as 4 bytes (16 types) to define the rarity of the pendant, and the random seed is defined as 9 bytes (512 types) to increase the diversity of pendant encoding.
[0081] S2: In terms of resource presentation, we only need to make a model of one pendant, with three channels divided by the artist, and configure the selectable colors, textures, and wear and tear. We can then display the randomly obtained resources on the model, which greatly reduces the number of resources.
[0082] This application can greatly reduce art resources, generate a large number of performance props, and will not occupy too many ID values. That is, it can achieve the diversity of performance props on the basis of greatly reducing the prop value ID occupation and the number of art resources.
[0083] Corresponding to the above method embodiment, the present application also provides an object generation device embodiment, Figure 3 FIG. 1 is a schematic diagram showing the structure of an object generation device provided by an embodiment of the present application. Figure 3 As shown, the device comprises: A response module 302 is configured to respond to an object generation request and determine a template identifier of a target object type according to object generation information carried in the object generation request; The determination module 304 is configured to determine the object template according to the template identifier, and generate attribute information according to the object corresponding to the object template to obtain random object attribute data; The generating module 306 is configured to generate a target object according to the template identifier and the random object attribute data.
[0084] Optionally, the generating module 306 is further configured to: The random object attribute data is stored in a target data block using a predefined format, and a target object is generated according to the target object model and the target data block.
[0085] Optionally, the generating module 306 is further configured to: The random object attribute data is applied to the target object model to generate a target object.
[0086] The device also includes: a configuration module configured to configure a template identifier for the target object model; determine an object template corresponding to the template identifier based on a configuration part of the target object model and configuration items of each configuration part; and determine object generation attribute information corresponding to the object template based on candidate values of the configuration items of each configuration part.
[0087] Optionally, the determining module 304 is further configured to: Determine candidate values of configuration items of each configuration part corresponding to the target object model according to the object generation attribute information corresponding to the object template; Determine the target value corresponding to the configuration item of each configuration part from the candidate values of the configuration items of each configuration part; The random object attribute data is obtained according to the target values corresponding to the configuration items of each configuration part.
[0088] The device further includes: a rendering module configured to render the target object and display it to the user through the user interaction interface of the client.
[0089] The above is a schematic scheme of an object generation device of the present embodiment. It should be noted that the technical scheme of the object generation device and the technical scheme of the object generation method described above belong to the same concept. For details not described in detail in the technical scheme of the object generation device, please refer to the description of the technical scheme of the object generation method described above. In addition, each component in the device embodiment should be understood as a functional module that must be established to implement each step of the program flow or each step of the method, and each functional module is not an actual functional division or separation definition. The device claim defined by such a group of functional modules should be understood as a functional module architecture that mainly implements the solution through the computer program recorded in the specification, and should not be understood as a physical device that mainly implements the solution through hardware.
[0090] Figure 4 The block diagram of a computing device 400 according to an embodiment of the present application is shown. The components of the computing device 400 include but are not limited to a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and the database 450 is used to store data.
[0091] The computing device 400 also includes an access device 440 that enables the computing device 400 to communicate via one or more networks 460. Examples of these networks include a PSTN (Public Switched Telephone Network), a LAN (Local Area Network), a WAN (Wide Area Network), a PAN (Personal Area Network), or a combination of communication networks such as the Internet. The access device 440 may include one or more of any type of network interface (e.g., a NIC (Network Interface Controller)) wired or wireless, such as an IEEE802.11 WLAN (Wireless Local Area Network) wireless interface, a Wi-MAX (Worldwide Interoperability for Microwave Access) interface, an Ethernet interface, a USB (Universal Serial Bus) interface, a cellular network interface, a Bluetooth interface, and an NFC (Near Field Communication).
[0092] In one embodiment of the present application, the above components of the computing device 400 and Figure 4 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 4 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.
[0093] The computing device 400 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a PC (Personal Computer). The computing device 400 may also be a mobile or stationary server.
[0094] The processor 420 is used to execute computer executable instructions of the object generation method.
[0095] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the object generation method described above are of the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the object generation method described above.
[0096] An embodiment of the present application further provides a computer-readable storage medium storing a computer program / instruction, which is used in an object generation method when executed by a processor.
[0097] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the object generation method described above are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the object generation method described above.
[0098] An embodiment of the present application further provides a computer program product, including a computer program / instruction, which is used in an object generation method when executed by a processor.
[0099] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the object generation method described above are of the same concept, and the details not described in detail in the technical scheme of the computer program product can be found in the description of the technical scheme of the object generation method described above.
[0100] The computer program / instruction includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, ROM (Read-Only Memory), RAM (Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer readable media does not include electric carrier signals and telecommunication signals.
[0101] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0102] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0103] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the present application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can understand and use the present application well. The present application is only limited by the claims and their full scope and equivalents.
Claims
1. A method for generating an object, characterized in that: include: In response to the object generation request, determining a template identifier corresponding to the target object model according to the object generation information carried in the object generation request; Determine the object template according to the template identifier, and generate attribute information according to the object corresponding to the object template to obtain random object attribute data; A target object is generated according to the target object model and the random object attribute data.
2. The object generation method according to claim 1, characterized in that: The generating a target object according to the target object model and the random object attribute data comprises: The random object attribute data is stored in a target data block using a predefined format, and a target object is generated according to the target object model and the target data block.
3. The object generation method according to claim 1 or 2, characterized in that: The generating a target object according to the target object model and the random object attribute data comprises: The random object attribute data is applied to the target object model to generate a target object.
4. The object generation method according to claim 1, characterized in that: Before determining the template identifier corresponding to the target object model according to the object generation information carried in the object generation request, the method further includes: Configuring a template identifier for the target object model; Determining an object template corresponding to the template identifier according to the configuration part of the target object model and the configuration items of each configuration part; According to the candidate values of the configuration items of the configuration parts, the object generation attribute information corresponding to the object template is determined.
5. The object generation method according to claim 1, characterized in that: The step of generating attribute information according to the object corresponding to the object template to obtain random object attribute data includes: Determine candidate values of configuration items of each configuration part corresponding to the target object model according to the object generation attribute information corresponding to the object template; Determine the target value corresponding to the configuration item of each configuration part from the candidate values of the configuration items of each configuration part; The random object attribute data is obtained according to the target values corresponding to the configuration items of each configuration part.
6. The object generation method according to any one of claims 1 to 5, characterized in that: Applied to the client, after generating the target object according to the target object model and the random object attribute data, it also includes: The target object is rendered and displayed to the user through the user interaction interface of the client.
7. An object generation device, characterized in that: include: A response module, configured to respond to the object generation request and determine a template identifier of a target object type according to the object generation information carried in the object generation request; a determination module configured to determine an object template according to the template identifier, and to generate attribute information according to an object corresponding to the object template to obtain random object attribute data; The generating module is configured to generate a target object according to the template identifier and the random object attribute data.
8. A computing device, characterized in that include: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The method comprises a computer program / instruction, which implements the method according to any one of claims 1 to 6 when executed by a processor.