Digital asset rendering method and device, storage medium, and electronic device

By rendering the art assets and asset rarity information of digital collections in the image interactive interface, the problems of low production efficiency and inability to display the holder's identity are solved, efficient attribute display and holder identity verification are achieved, and the holding experience and circulation value is improved.

CN114782575BActive Publication Date: 2025-08-12PERFECT WORLD ZHENGQI SHANGHAI MULTIMEDIA TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210412857.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-19
Publication Date
2025-08-12
Estimated Expiration
2042-04-19

AI Technical Summary

Technical Problem

The production process of digital collections in the prior art is inefficient, prone to errors, and cannot effectively display the holder's identity, reducing the holding experience and circulation value.

Method used

By detecting the trigger command to display the logo in the image interactive interface, reading the art assets and asset rarity information of the digital collection, rendering the target special effects to display the rarity and holder identity of the digital collection, including the holder account identification, digital collection art assets and digital collection identification.

Benefits of technology

It improves the efficiency of attribute display and human-computer interaction of digital collections, improves the value of holding experience and circulation, and prevents the forgery of the holder's identity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114782575B_ABST
    Figure CN114782575B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for rendering digital assets, a storage medium, and an electronic device, wherein the method includes: detecting a trigger instruction for a display identification of a target digital collection in an image interaction interface; reading the art assets and asset rarity information of the target digital collection in response to the trigger instruction; rendering a target special effect based on the art assets and / or asset rarity information, wherein the target special effect is used to display the digital collection special effect and the rarity special effect of the digital collection; wherein the display identification includes at least any one of the following: a holder account identification, a digital collection art asset, and a digital collection identification. The present invention solves the problem in the related art that a single image cannot directly reflect the identity of the digital asset holder, improves the attribute display efficiency and human-computer interaction efficiency of the digital collection, and enhances the holding experience of the digital asset holder and the value preservation attribute or circulation value of the digital asset.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for rendering digital assets, a storage medium, and an electronic device. Background Art

[0002] Unlike most physical artworks, digital collectibles (digital assets) can sometimes possess collectible value precisely because they are generated in batches and conform to certain patterns. However, most digital assets today are not generated by algorithms, requiring significant human effort and time to create.

[0003] In related art, after the creation of tiles, designers manually adjust the elements selected within each tile. This can easily lead to duplicate or missing elements. Pixel processing designers struggle to perform random batch processing on tiles, resulting in a simple combination of elements. Limited processing options can easily create similar images, leading to time-consuming export of composite images, which is prone to errors and inefficient. This results in slow and labor-intensive creation, and errors such as adding or removing tiles are common during operation. Furthermore, it's difficult to reprocess tiles during the creation process, making it difficult to verify duplicates in the generated image. Furthermore, digital assets are typically tied to a single key, so users only see that key when viewing them, resulting in a poor interactive experience. Digital collectibles typically contain images, which can be downloaded or screenshotted, making them easy to copy and potentially misusing. A single image cannot directly identify the digital asset holder, diminishing the asset's holding experience and reducing its value preservation or circulation value.

[0004] Currently, no effective solution has been found for the above-mentioned problems existing in the related technologies. Summary of the Invention

[0005] Embodiments of the present invention provide a method and device for rendering digital assets, a storage medium, and an electronic device.

[0006] According to one embodiment of the present invention, a method for rendering digital assets is provided, comprising: detecting a trigger instruction for a display identification of a target digital collection in an image interaction interface; reading the art assets and asset rarity information of the target digital collection in response to the trigger instruction; rendering a target special effect based on the art assets and / or the asset rarity information, wherein the target special effect is used to display digital collection special effects and digital collection rarity special effects; wherein the display identification includes at least any one of the following: a holder account identification, a digital collection art asset, and a digital collection identification.

[0007] Optionally, after rendering the target special effect according to the art asset and the asset rarity information, the method further includes: switching the target digital collectible from a static image state to a special effect display state.

[0008] Optionally, the digital collection art assets include at least any one of the following: pictures, two-dimensional models, and three-dimensional models.

[0009] Optionally, rendering a target special effect according to the art asset includes at least any one of the following: loading the art asset into a plane carrier model, and rendering to obtain a first target special effect; loading the art asset into a stereoscopic three-dimensional model, and rendering to obtain a second target special effect.

[0010] Optionally, before detecting a trigger instruction for a display mark for a target digital collection in the image interaction interface, the method further includes: generating the art asset by combining multiple material resources; reading random values corresponding to the multiple material resources respectively, and combining them to obtain a random value sequence, wherein the random value is an operation value adopted by a random algorithm when selecting the material resource in a material library; configuring the random value sequence as a genetic value of the art asset, and constructing a unique binding relationship between the genetic value and the art asset; and determining the art asset and the genetic value as the target digital collection.

[0011] Optionally, before reading the art assets and asset rarity information of the target digital collection, the method includes: determining a number of material resources contained in the art assets; determining the occurrence probability of each material resource, wherein the occurrence probability is used to generate a random value, each random value corresponding to a material resource in a material set; and calculating the asset rarity information of the art assets based on the occurrence probability.

[0012] Optionally, rendering a target special effect according to the asset rarity information includes: determining a rarity level of the target digital collection according to the asset rarity information; searching for special effect parameters that match the rarity level; and rendering a third target special effect using the special effect parameters.

[0013] According to another embodiment of the present invention, a rendering device for digital assets is provided, comprising: a detection module for detecting a trigger instruction for a display identification of a target digital collection in an image interaction interface; a reading module for reading the art assets and asset rarity information of the target digital collection in response to the trigger instruction; a rendering module for rendering a target special effect based on the art assets and / or the asset rarity information, wherein the target special effect is used to display digital collection special effects and digital collection rarity special effects; wherein the display identification includes at least any one of the following: a holder account identification, a digital collection art asset, and a digital collection identification.

[0014] Optionally, the device further includes: a switching module, configured to switch the target digital collection from a static image state to a special effects display state after the rendering module renders the target special effects according to the art assets and the asset rarity information.

[0015] Optionally, the digital collection art assets include at least any one of the following: pictures, two-dimensional models, and three-dimensional models.

[0016] Optionally, the rendering module includes at least any one of the following: a first rendering unit, used to load the art assets into a plane carrier model and render to obtain a first target special effect; a second rendering unit, used to load the art assets into a stereoscopic three-dimensional model and render to obtain a second target special effect.

[0017] Optionally, the device also includes: a generation module, which is used to generate the art asset by combining multiple material resources before the detection module detects the trigger instruction of the display mark of the target digital collection in the image interaction interface; a reading module, which is used to read the random values corresponding to the multiple material resources respectively, and combine them to obtain a random value sequence, wherein the random value is the operation value used by the random algorithm when selecting the material resource in the material library; a configuration module, which is used to configure the random value sequence as the genetic value of the art asset, and construct a unique binding relationship between the genetic value and the art asset; a first determination module, which is used to determine the art asset and the genetic value as the target digital collection.

[0018] Optionally, the device also includes: a second determination module, used to determine a number of material resources contained in the art asset before the reading module reads the art asset and asset rarity information of the target digital collection; a third determination module, used to determine the occurrence probability of each material resource, wherein the occurrence probability is used to generate a random value, each random value corresponds to a material resource in the material set; and a calculation module, used to calculate the asset rarity information of the art asset based on the occurrence probability.

[0019] Optionally, the rendering module includes: a determination unit for determining the rarity level of the target digital collection based on the asset rarity information; a search unit for searching for special effect parameters matching the rarity level; and a third rendering unit for rendering a third target special effect using the special effect parameters.

[0020] According to yet another embodiment of the present invention, a storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when running.

[0021] According to another embodiment of the present invention, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.

[0022] Through the present invention, a trigger instruction for the display identification of the target digital collection is detected in the image interaction interface, and in response to the trigger instruction, the art assets and asset rarity information of the target digital collection are read; the target special effect is rendered according to the art assets and / or asset rarity information, wherein the target special effect is used to display the digital collection special effect and the rarity special effect of the digital collection. By rendering the target special effect according to the art assets and / or asset rarity information through the display identification of the target digital collection, the identity of the holder of the digital collection can be prevented from being forged, and the problem in the related art that a single image cannot directly reflect the identity of the digital asset holder is solved, the attribute display efficiency and human-computer interaction efficiency of the digital collection are improved, and the holding experience of the digital asset holder and the value preservation attribute or circulation value of the digital asset are enhanced. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0024] Figure 1 This is a hardware block diagram of a digital asset rendering computer according to an embodiment of the present invention;

[0025] Figure 2 is a flowchart of a method for rendering digital assets according to an embodiment of the present invention;

[0026] Figure 3 is a schematic diagram of displaying a display logo on an image interaction interface according to an embodiment of the present invention;

[0027] Figure 4 is a schematic diagram of displaying target special effects based on a card model according to an embodiment of the present invention;

[0028] Figure 5 is a structural block diagram of a digital asset rendering device according to an embodiment of the present invention;

[0029] Figure 6 It is a structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of this application. It should be noted that, in the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] Example 1

[0033] The method embodiment provided in the first embodiment of the present application can be executed in a mobile phone, tablet, server, computer or similar electronic terminal. Taking running on a computer as an example, Figure 1 This is a hardware block diagram of a digital asset rendering computer according to an embodiment of the present invention. Figure 1 As shown, the computer may include one or more ( Figure 1 Only one is shown) a processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA and other processing devices) and a memory 104 for storing data. Optionally, the computer may also include a transmission device 106 and an input / output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.

[0034] Memory 104 can be used to store computer programs, such as software programs and modules of application software, such as a computer program corresponding to a method for rendering a digital asset in an embodiment of the present invention. Processor 102 executes the computer programs stored in memory 104 to execute various functional applications and data processing, thereby implementing the aforementioned method. Memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, memory 104 may further include memory remotely located relative to processor 102, and such remote memory may be connected to the computer via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0035] Transmission device 106 is used to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by a computer's communications provider. In one embodiment, transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0036] Optionally, the input and output device 108 further includes a human-computer interaction screen for obtaining human-computer interaction instructions through a human-computer interaction interface and for presenting a rendered scene image;

[0037] In this embodiment, a method for rendering digital assets is provided. Figure 2 FIG. 1 is a flow chart of a method for rendering digital assets according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0038] Step S202: detecting a trigger instruction for a display mark of a target digital collection in the image interaction interface;

[0039] Among them, the display logo includes at least any one of the following: holder account logo, digital collection art asset, digital collection logo.

[0040] Figure 3This is a schematic diagram of an embodiment of the present invention displaying a display logo on a graphic interactive interface, including a holder account logo (Tongshulin First Hour Rabbi), a digital collection art asset (a picture corresponding to the avatar), and a digital collection logo. The digital collection logo is used to represent that the user account holds a digital collection or that the user avatar is a digital collection and has been authenticated by the issuer of the digital collection. The digital collection logo can be an identifier such as a certification symbol. If the digital collection logo is text information, the text display style corresponding to the digital collection logo is different from the display style of the system text to distinguish it.

[0041] Step S204 , in response to the trigger instruction, reading the art assets and asset rarity information of the target digital collection;

[0042] The digital art assets in this embodiment may be, but are not limited to, images, two-dimensional models, and three-dimensional models. The specific digital art asset object retrieved may be one or a combination of these. Asset rarity information is used to represent the probability of occurrence of an art asset, or the probability of occurrence of a specific resource within an art asset. Art assets contain multiple resources, optionally consisting of at least one of a pixel, a texture, or a replacement set.

[0043] Step S206 , rendering target special effects according to the art assets and / or asset rarity information, wherein the target special effects are used to display the digital collection special effects and the rarity special effects of the digital collection.

[0044] Through the above steps, a trigger instruction for the display identification of the target digital collection is detected in the image interaction interface, and in response to the trigger instruction, the art assets and asset rarity information of the target digital collection are read; the target special effects are rendered according to the art assets and / or asset rarity information, wherein the target special effects are used to display the digital collection special effects and the rarity special effects of the digital collection. By rendering the target special effects according to the art assets and / or asset rarity information through the display identification of the target digital collection, the identity of the holder of the digital collection can be prevented from being forged, and the problem in the related technology that a single image cannot directly reflect the identity of the digital asset holder is solved, the attribute display efficiency and human-computer interaction efficiency of the digital collection are improved, and the holding experience of the digital asset holder and the value preservation attribute or circulation value of the digital asset are enhanced.

[0045] In one implementation of this embodiment, after rendering the target special effects based on the art assets and asset rarity information, the process also includes switching the target digital collectible from a static image state to a special effects display state. A static image is a two-dimensional image display of the target digital collectible's art assets. For example, if a user applies a digital collectible to an avatar, the digital collectible is transformed from one or more of a picture, a two-dimensional model, or a three-dimensional model to a unified two-dimensional image display. The special effects display state can be dynamic or static, such as a floating display, or dynamic effects created by adding special effects animation, patterns, or sounds to a static image.

[0046] Optionally, rendering a target special effect based on art assets includes at least any one of the following: loading the art assets into a plane carrier model, and rendering to obtain a first target special effect; loading the art assets into a stereoscopic three-dimensional model, and rendering to obtain a second target special effect.

[0047] In one example, the plane carrier model is a card model, and the art asset is a picture. After the picture is loaded into the card model, the first target special effect is displayed. Figure 4 This is a schematic diagram of an embodiment of the present invention showing target special effects based on a card model, illustrating three display surfaces, including the front, side, and back.

[0048] In one example, the stereoscopic three-dimensional model can be a combination of one or more of a weapon model, a prop model, a clothing model, a vehicle model, a building model, and a character model. The art asset is a picture, and after the picture is loaded into the stereoscopic three-dimensional model, a second target special effect is displayed.

[0049] In one implementation of this embodiment, before detecting the trigger instruction for the display mark of the target digital collection, it also includes: using a combination of multiple material resources to generate art assets; reading random values corresponding to the multiple material resources, and combining them to obtain a random value sequence, wherein the random value is the calculation value used by the random algorithm when selecting material resources in the material library; configuring the random value sequence as the gene value of the art asset, and constructing a unique binding relationship between the gene value and the art asset; determining the art asset and the gene value as the target digital collection.

[0050] The target digital collection includes art assets and random value sequences corresponding to the art assets. The random value sequence serves as the unique genetic value of the art assets. Art assets are generated from multiple material resources, and the unique genetic value corresponds to the random seed or random value used by the random algorithm when generating the art assets.

[0051] In some examples, before reading the art assets and asset rarity information of the target digital collection, the following is also included: determining the number of material resources contained in the art assets; determining the probability of occurrence of each material resource, wherein the probability of occurrence is used to generate a random value, and each random value corresponds to a material resource in the material collection; and calculating the asset rarity information of the art assets based on the probability of occurrence. The source of the art assets and asset rarity information of the target digital collection can be received from the information sent from the server, or read locally from the client, or both, such as reading art assets locally from the client and receiving asset rarity from the server; or reading art assets locally from the server and receiving asset rarity from the client. The art assets and asset rarity of the target digital collection are determined during the digital collection production process.

[0052] For example, an art asset contains three material resources, namely material 1, material 2, and material 3. The appearance probabilities of material 1, material 2, and material 3 are 10%, 5%, and 25%, respectively. When calculating the asset rarity information of the art asset, 10%, 5%, and 25% can all be used as rarity information, or a total rarity can be calculated based on the weighted or averaged rarity of 10%, 5%, and 25%, or the 5% with the lowest appearance probability can be used as the asset rarity information of the art asset.

[0053] In this embodiment, rendering a target special effect according to the asset rarity information includes: determining the rarity level of the target digital collectible according to the asset rarity information; searching for special effect parameters that match the rarity level; and rendering a third target special effect using the special effect parameters.

[0054] For example, the asset rarity ranges from 0% to 10% for the first level, 10% to 50% for the second level, and 50% to 100% for the third level. The first level matches the first special effect parameters, the second level matches the second special effect parameters, and the third level matches the third special effect parameters.

[0055] In one implementation of this embodiment, before detecting a trigger instruction for a display mark of a target digital collection in the image interaction interface, the method further includes:

[0056] A target digital collection is generated using multiple material resources, wherein the target digital collection includes art assets and a random value sequence corresponding to the art assets; an asset transfer request from a client is received, and the target digital collection is transferred to the client; the user account of the client is obtained, and a blockchain node is created using the target digital collection and the user account; and the target digital collection is displayed on the client.

[0057] In some examples, creating a blockchain node requires information such as release date, publisher, circulation, rarity, digital collection owner information, and asset information. Once uploaded to the blockchain, the work's hash value is calculated from the data. Verification is performed through a query interface provided by the issuer and is accessible to everyone.

[0058] In some examples, displaying the target digital collection on the client includes: detecting a first interaction instruction, and displaying the virtual asset directory of the user account on the client according to the first interaction instruction; detecting a second interaction instruction, and displaying the digital asset list of the user account on the client according to the second interaction instruction; detecting a third interaction instruction, selecting the target digital collection in the digital asset list according to the third interaction instruction, and displaying attribute information of the target digital collection on the client.

[0059] Optionally, a digital collection showcase for the target digital collection may be created first, where different digital collection showcases can display different types of digital collections, thereby achieving orderly classification of digital assets. Before displaying the digital asset list of the user account on the client according to the second interaction instruction, the process further includes: detecting a fourth interaction instruction, creating a digital collection showcase for the user account on the client according to the fourth interaction instruction, and configuring a showcase address for the digital collection showcase, where the digital collection showcase corresponds to the showcase address.

[0060] Optionally, displaying the attribute information of the target digital collection on the client includes: displaying the art assets of the target digital collection on the client; such as pictures, two-dimensional models, three-dimensional models, etc.; displaying the random value sequence of the target digital collection on the client; displaying the release time of the target digital collection on the client; displaying the rarity information of the target digital collection on the client; displaying the collection information of the target digital collection on the client, wherein the collection information is used to represent the collection time and collection address of the target digital collection.

[0061] In one implementation of this embodiment, after a user obtains a target digital collectible, they can further utilize the target digital collectible, such as by setting a user avatar, background avatar, textures, skins, props, clothing, etc. In one example, the target digital collectible's art assets are configured as 3D model displays, such as skins, props, clothing, etc., and the 3D model assets corresponding to the target digital collectible, such as skins, props, clothing, etc., are displayed on the client. In another example, the target digital collectible's art assets are configured as corresponding image displays. After displaying the image assets of the target digital collectible on the client, the following steps are performed: receiving an avatar setting instruction from a user account; responding to the avatar setting instruction, generating an avatar frame based on the image assets, and setting the avatar frame as the user avatar of the user account. In this case, the image corresponding to the target digital collectible also serves as the display identifier of the target digital collectible. Upon detecting a trigger instruction in which a user clicks on the image within the image interaction interface, the target digital collectible's art assets and asset rarity information corresponding to the image are read in response to the trigger instruction, and target special effects are rendered based on the target digital collectible's art assets and asset rarity information.

[0062] Optionally, after transferring the target digital collection to the client, it also includes: monitoring the game status information of the user account, wherein the game status information is used to indicate the login status and / or matching status of the user account; if the game status information changes, using the target digital collection to generate a target system message of the current game status, wherein the target system message carries the attribute information of the target digital collection; and broadcasting the target system message within the site.

[0063] For example, after a user who owns the target digital collection (digital asset 1) comes online, a broadcast message is sent to the entire server, "The distinguished owner of digital asset 1 is online, and the rarity of digital asset 1 is 5%."

[0064] In an example of this embodiment, the target digital collection is an image asset, and using multiple material resources to generate the target digital collection includes:

[0065] S11, generate image assets by combining multiple material resources;

[0066] In one embodiment, generating a native image by combining multiple material resources includes: for each target pixel in M material resources, searching for a layer that matches it, obtaining M layers, where each layer corresponds to a target pixel, and M is an integer greater than 1; after adding each target pixel to the corresponding layer, superimposing the M layers according to a preset layer relationship to obtain a first native image.

[0067] In this embodiment, if the original image also includes textures and replacement sets, the textures and replacement sets can also be added to the matching layer. The same layer can include pixels, textures, replacement sets, etc. Textures and replacement sets can also be set on separate layers. The upper layer can cover the overlapping pixels of the lower layer.

[0068] In another embodiment, generating a native image by combining multiple material resources includes: for each target pixel in M material resources, searching for a matching tile to obtain M tiles, wherein each tile corresponds to a target pixel and M is an integer greater than 1; after adding each target pixel to the corresponding tile, splicing M layers according to preset tile layout information to obtain a second native image.

[0069] In this embodiment, if the original image also includes textures and replacement sets, the textures and replacement sets can also be added to the matching tiles. The same tile can include pixels, textures, replacement sets, etc. Pixels on adjacent tiles will not overlap each other.

[0070] S12, reading the random value used by the random algorithm to select multiple material resources;

[0071] S13, configuring the random value as the gene value of the image asset, and establishing a unique binding relationship between the gene value and the image asset, wherein the target digital collection includes the gene value and the image asset.

[0072] Optionally, generating an image asset by combining multiple material resources includes: generating a native image by combining multiple material resources; generating a plurality of derivative images based on the native image; and packaging the native image and the derivative images to obtain an image asset.

[0073] Optionally, generating multiple derivative images based on a native image includes: cropping the native image to obtain a first derivative image, and decomposing the native image to obtain a second derivative image. The native image can be cropped into images of predetermined shapes, such as an oval for a user's avatar, or a square native image can be cropped into a rectangle. Decomposition can be performed in layers or tiles, or in pixels.

[0074] In this embodiment, the material library is a material collection including a variety of material resources, and the material collection includes several types of materials used to generate digital collections, such as character materials, landscape materials, background materials, set materials, model materials, frame materials, etc. Before using a combination of multiple material resources to generate image assets, it also includes selecting multiple material resources from the material collection based on a random algorithm. Selecting multiple material resources from the material collection based on a random algorithm includes: selecting a number of target pixels from the pixel material collection based on a first random algorithm, generating a number of target textures based on a second random algorithm and a texture material collection, and selecting a number of target replacement sets from the replacement set material collection based on a third random algorithm; wherein the multiple material resources include: a number of target pixels, a number of target textures, and a number of target replacement sets, and the material collection includes: a pixel material collection, a texture material collection, and a replacement set material collection.

[0075] In this embodiment, each time the random algorithm generates an image of a digital collection, it will randomly combine N parameters. N1 variables are related to the target pixel selection, N2 variables are related to the random generation of target textures, and N3 variables are related to the target replacement set. N = N1 + N2 + N3. Variables N1, N2, and N3 also constitute the genetic value of the digital collection.

[0076] In this embodiment, multiple digital collections can also be generated in batches. In this implementation, selecting multiple material resources from a material set based on a random algorithm includes: allocating the frame number of the current image frame in sequence from a preset number segment; selecting a number of target pixels from a pixel material set based on the frame number and a first random algorithm, generating a number of target textures based on the frame number and a second random algorithm and a texture material set, and selecting a number of target replacement sets from a replacement set material set based on the frame number and a third random algorithm; wherein the multiple material resources include: a number of target pixels, a number of target textures, and a number of target replacement sets, and the material set includes: a pixel material set, a texture material set, and a replacement set material set.

[0077] The system presets multiple frame numbers, i.e., preset number segments. During the batch generation process, each digital collection / image asset is assigned a frame number. Since the frame number is relied upon in the process of generating material resources, each digital collection / image asset has a different frame number, so different material resources can be randomly generated. For example, to batch generate 500 digital collections, you can set a preset number segment 0 to 499. During generation, each digital collection / image asset is assigned a frame number, and 500 frame numbers correspond to 500 digital collections. Of course, in addition to using continuous frame numbers, different digital collections / image assets can also be generated based on the asset identifiers of non-continuous digital collections / image assets.

[0078] In one aspect of this embodiment, selecting a plurality of target pixels from a pixel material set based on a first random algorithm includes:

[0079] S21, determining the frame number of the current image frame, wherein the current image frame is the digital asset carrier of the digital collection;

[0080] S22, generating a first random seed based on the frame number;

[0081] In one embodiment, generating a first random seed based on a frame number includes: determining a fixed seed coefficient for each pixel; determining the frame number as the first seed coefficient, determining the fixed seed coefficient as the second seed coefficient, and using the first seed coefficient and the second seed coefficient to calculate the first random seed for the corresponding pixel.

[0082] When rendering an image frame using the method of this embodiment, the current frame's frame number can be used as a random seed coefficient. Combined with the pixel's fixed seed coefficient, the random seed value of each pixel is multiplied by the current frame's frame number to produce a random and predictable value, namely, a random value. For example, if A represents the frame number of the currently selected frame and the fixed seed coefficient of pixel layer_5 is 0.5, the seed value of the random algorithm is (A*0.5). This value is random for each frame but fixed within the same frame.

[0083] In some embodiments, in addition to using the frame number as a seed coefficient, a timestamp can also be used as a seed coefficient. For example, the timestamp can be used as a third seed coefficient. Because the timestamp corresponds to the current time and is therefore unlikely to be repeated, selecting a plurality of target pixels from a pixel material set based on a first random algorithm includes: determining the timestamp of the current time; and generating a first random seed based on the timestamp. Furthermore, the first seed coefficient, the second seed coefficient, and the third seed coefficient can be used to calculate a first random seed for the corresponding pixel, thereby increasing the numerical range of the random seed and thereby improving the random range of the random value.

[0084] S23, generating a first random value based on the first random seed, wherein the first random value is used to indicate a pixel material number;

[0085] In one embodiment, generating a first random value based on a first random seed includes: for each pixel, determining the number of elements contained in the pixel; if the number of elements is a fixed number, generating a fixed number of first random values based on the first random seed, each first random value corresponding to a material resource; if the number of elements is a random number, reading the occurrence probability of each element from a preset parameter, and generating a random number of first random values based on the first random seed and the occurrence probability, each first random value corresponding to a material resource.

[0086] In an example, pixel 5 displays a single element. If pixel 5 has 10 selectable materials, the file name suffixes (pixel material numbers) are 0 to 9 respectively. At this time, the random algorithm "round(A*B)*10" can be used to obtain a random number from 0 to 9 with equal probability. If pixel 5 displays multiple elements of a fixed number, the random algorithm is repeated, and the number of executions is the same as the number of elements. A is the frame number, and B is the fixed seed coefficient of pixel 5.

[0087] In one example, pixel 5 displays a random number of elements. If pixel 5 has an 80% probability of displaying element 2, the random algorithm "round(A*B)>0.8" can be used to make element 2 appear with an 80% probability. The same is true for other elements with different occurrence probabilities until all elements with an occurrence probability greater than 0 are executed.

[0088] S24: Select a material resource that matches the first random value from the pixel material set.

[0089] In one aspect of this embodiment, selecting a plurality of target textures from the material set based on the second random algorithm includes:

[0090] S31, determining the frame number of the current image frame, wherein the current image frame is the digital asset carrier of the digital collection;

[0091] S32, generating a second random seed based on the frame number;

[0092] S34, generating a second random value based on the random seed, wherein the second random value is used to indicate the position of the map anchor point;

[0093] S35 , generating a target texture matching the second random value based on the original map.

[0094] In this embodiment, if pixels need to be randomly scaled, rotated, or adjusted to adjust the texture of the target texture, the random adjustment of the texture can be achieved through anchor points.

[0095] In one implementation of this embodiment, generating a target texture that matches the second random value based on the original map includes: determining a target area to be covered and the original map; calculating an anchor point position based on the second random value; and scaling the original map to the same size as the target area using the anchor point position as a scaling center point to obtain the target texture. The size of the original map is different from the size of the target area to be covered.

[0096] In other examples of this embodiment, generating a target texture that matches the second random value based on the original map includes: determining the target area to be covered and the original map; calculating the anchor point position based on the second random value; and extracting the same size as the target area in the original map with the anchor point position as the center point to obtain the target texture.

[0097] Optionally, the second random value can also be used to indicate the location of the texture to be covered. For example, if object A has three areas that can be covered with texture, one of these three areas can be randomly selected using the second random value. Generating a target texture that matches the second random value based on the original texture includes: selecting a texture location that matches the second random value and obtaining the original texture; calculating an anchor point location based on the second random value; and scaling the original texture to the same size as the texture location using the anchor point location as the scaling center point to obtain the target texture.

[0098] Table 1 describes the composition of the gene value in the embodiment of the present invention, showing the complete random information of each digital collection, namely the random value sequence (gene value). The gene value is composed of 11 parts (p1-p11), corresponding to 11 sub-gene values, which can respectively correspond to the layers or tiles in the above embodiment. The sub-gene value of each part corresponds to the random value used when generating the content of the corresponding layer or tile (such as pixels, textures, etc.), and the random value is related to the unified seed value of the image asset.

[0099] Table 1

[0100]

[0101] In one implementation of this embodiment, after establishing the unique binding relationship between the gene value and the image asset, the method further includes: associating the gene value with the image asset and storing it in an asset server, and / or embedding the gene value at a preset pixel position of the image asset.

[0102] When batch generating multiple digital collections, this embodiment can also batch export multiple digital collections. For example, the final synthesized image assets can be batch exported to the same folder. The image assets can be named and numbered in sequence. If derivative images are also included, the original images and derivative images can be batch exported in sequence to folders named with frame numbers.

[0103] In one implementation of this embodiment, when multiple digital collections are generated in batches, before or after exporting, all digital collections may be deduplicated based on the gene value of each digital collection.

[0104] Since the gene value is associated with the image asset and stored on the asset server, when the user queries the authenticity of the digital collection, he can enter the gene value of the digital collection (corresponding to the first image to be authenticated). The server queries the second image that matches the gene value and compares the two images. If they are consistent, it is authentic; if they are inconsistent, it is forged.

[0105] Through the description of the above embodiments, those skilled in the art will clearly understand that the methods according to the above embodiments can be implemented using software plus the necessary general-purpose hardware platform. Of course, hardware can also be used, but in many cases the former is a more preferred embodiment. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, or optical disk) and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.

[0106] Example 2

[0107] This embodiment also provides a digital asset rendering device for implementing the above-mentioned embodiments and preferred implementations. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0108] Figure 5 is a structural block diagram of a digital asset rendering device according to an embodiment of the present invention, such as Figure 5 As shown, the device includes: a detection module 50, a reading module 52, and a rendering module 54, wherein:

[0109] A detection module 50 is used to detect a trigger instruction for a display mark of a target digital collection in the image interaction interface;

[0110] a reading module 52 for reading the art assets and asset rarity information of the target digital collection in response to the trigger instruction;

[0111] A rendering module 54 is configured to render target special effects based on the art assets and / or the asset rarity information, wherein the target special effects are used to display digital collectible special effects and digital collectible rarity special effects;

[0112] The display identification includes at least any one of the following: holder account identification, digital collection art assets, and digital collection identification.

[0113] Optionally, the device further includes: a switching module, configured to switch the target digital collection from a static image state to a special effects display state after the rendering module renders the target special effects according to the art assets and the asset rarity information.

[0114] Optionally, the digital collection art assets include at least any one of the following: pictures, two-dimensional models, and three-dimensional models.

[0115] Optionally, the rendering module includes at least any one of the following: a first rendering unit, used to load the art assets into a plane carrier model and render to obtain a first target special effect; a second rendering unit, used to load the art assets into a stereoscopic three-dimensional model and render to obtain a second target special effect.

[0116] Optionally, the device also includes: a generation module, which is used to generate the art asset by combining multiple material resources before the detection module detects the trigger instruction of the display mark of the target digital collection in the image interaction interface; a reading module, which is used to read the random values corresponding to the multiple material resources respectively, and combine them to obtain a random value sequence, wherein the random value is the operation value used by the random algorithm when selecting the material resource in the material library; a configuration module, which is used to configure the random value sequence as the genetic value of the art asset, and construct a unique binding relationship between the genetic value and the art asset; a first determination module, which is used to determine the art asset and the genetic value as the target digital collection.

[0117] Optionally, the device also includes: a second determination module, used to determine a number of material resources contained in the art asset before the reading module reads the art asset and asset rarity information of the target digital collection; a third determination module, used to determine the occurrence probability of each material resource, wherein the occurrence probability is used to generate a random value, each random value corresponds to a material resource in the material set; and a calculation module, used to calculate the asset rarity information of the art asset based on the occurrence probability.

[0118] Optionally, the rendering module includes: a determination unit for determining the rarity level of the target digital collection based on the asset rarity information; a search unit for searching for special effect parameters matching the rarity level; and a third rendering unit for rendering a third target special effect using the special effect parameters.

[0119] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0120] Example 3

[0121] The embodiment of the present application also provides an electronic device, Figure 6 is a structural diagram of an electronic device according to an embodiment of the present invention, such as Figure 6As shown, it includes a processor 61, a communication interface 62, a memory 63 and a communication bus 64, wherein the processor 61, the communication interface 62, and the memory 63 communicate with each other through the communication bus 64, and the memory 63 is used to store computer programs;

[0122] The processor 61 is configured to implement the following steps when executing the program stored in the memory 63: detecting a trigger instruction for a display identification of a target digital collection in the image interaction interface; reading the art assets and asset rarity information of the target digital collection in response to the trigger instruction; rendering a target special effect based on the art assets and / or the asset rarity information, wherein the target special effect is used to display the digital collection special effect and the rarity special effect of the digital collection; wherein the display identification includes at least any one of the following: a holder account identification, a digital collection art asset, and a digital collection identification.

[0123] Optionally, after rendering the target special effect according to the art asset and the asset rarity information, the method further includes: switching the target digital collectible from a static image state to a special effect display state.

[0124] Optionally, the digital collection art assets include at least any one of the following: pictures, two-dimensional models, and three-dimensional models.

[0125] Optionally, rendering a target special effect according to the art asset includes at least any one of the following: loading the art asset into a plane carrier model, and rendering to obtain a first target special effect; loading the art asset into a stereoscopic three-dimensional model, and rendering to obtain a second target special effect.

[0126] Optionally, before detecting a trigger instruction for a display mark for a target digital collection in the image interaction interface, the method further includes: generating the art asset by combining multiple material resources; reading random values corresponding to the multiple material resources respectively, and combining them to obtain a random value sequence, wherein the random value is an operation value adopted by a random algorithm when selecting the material resource in a material library; configuring the random value sequence as a genetic value of the art asset, and constructing a unique binding relationship between the genetic value and the art asset; and determining the art asset and the genetic value as the target digital collection.

[0127] Optionally, before reading the art assets and asset rarity information of the target digital collection, the method includes: determining a number of material resources contained in the art assets; determining the occurrence probability of each material resource, wherein the occurrence probability is used to generate a random value, each random value corresponding to a material resource in a material set; and calculating the asset rarity information of the art assets based on the occurrence probability.

[0128] Optionally, rendering a target special effect according to the asset rarity information includes: determining a rarity level of the target digital collection according to the asset rarity information; searching for special effect parameters that match the rarity level; and rendering a third target special effect using the special effect parameters.

[0129] The communication bus mentioned in the terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.

[0130] The communication interface is used for communication between the above terminal and other devices.

[0131] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.

[0132] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0133] In another embodiment provided by the present application, a computer-readable storage medium is further provided. The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the digital asset rendering method described in any of the above embodiments.

[0134] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the digital asset rendering method described in any one of the above embodiments.

[0135] In the above embodiments, all or part of the embodiments can be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, hard disk, tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0136] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0137] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0138] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0139] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0140] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0141] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc. Various media that can store program code.

[0142] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for rendering digital assets, characterized in that: include: Using multiple material resources to generate a target digital collection, wherein the target digital collection includes an art asset and a random value sequence corresponding to the art asset; receiving an asset transfer request from a client, and transferring the target digital collection to the client; obtaining a user account of the client, and creating a blockchain node using the target digital collection and the user account; displaying the target digital collection on the client; wherein, using multiple material resources to generate a target digital collection includes: using a combination of multiple material resources to generate an image asset; reading a random value used when a random algorithm selects multiple material resources; configuring the random value as a gene value of the image asset, and establishing a unique binding relationship between the gene value and the image asset, wherein the target digital collection includes a gene value and an image asset; wherein, using a combination of multiple material resources to generate an image asset includes: using a combination of multiple material resources to generate a native image; generating a plurality of derivative images based on the native image; packaging the native image and the derivative image to obtain an image asset; Determining a number of material resources included in the art asset; determining an occurrence probability of each material resource, wherein the occurrence probability is used to generate a random value, each random value corresponding to a material resource in the material collection; and calculating asset rarity information of the art asset based on the occurrence probability; Detecting a trigger instruction for a display mark of a target digital collection in the image interactive interface; In response to the trigger instruction, reading the art assets and asset rarity information of the target digital collection; Rendering a target special effect according to the art asset and / or the asset rarity information, wherein the target special effect is used to display a digital collection special effect and a digital collection rarity special effect; The display identification includes at least one of the following: holder account identification, digital collection art assets, and digital collection identification.

2. The method according to claim 1, characterized in that After rendering the target special effect according to the art asset and the asset rarity information, the method further includes: Switch the target digital collection from a static image state to a special effects display state.

3. The method according to claim 1 or 2, characterized in that The digital collection art assets include any of the following: pictures, two-dimensional models, and three-dimensional models.

4. The method according to claim 3, characterized in that The rendering target effects based on the art asset include any of the following: Loading the art asset into a plane carrier model, and rendering to obtain a first target special effect; The art assets are loaded into the stereoscopic three-dimensional model and rendered to obtain a second target special effect.

5. The method according to claim 1 or 4, characterized in that Rendering target effects based on the asset rarity information includes: Determining the rarity level of the target digital collectible according to the asset rarity information; Finding special effect parameters that match the rarity level; The special effect parameters are used to render a third target special effect.

6. A digital asset rendering device, characterized in that: include: A generation module is used to generate a target digital collection using multiple material resources, wherein the target digital collection includes an art asset and a random value sequence corresponding to the art asset; receive an asset transfer request from a client, and transfer the target digital collection to the client; obtain a user account of the client, and create a blockchain node using the target digital collection and the user account; and display the target digital collection on the client; wherein, generating the target digital collection using multiple material resources includes: generating an image asset using a combination of multiple material resources; reading a random value used when a random algorithm selects multiple material resources; configuring the random value as a gene value of the image asset, and establishing a unique binding relationship between the gene value and the image asset, wherein the target digital collection includes a gene value and an image asset; wherein, generating an image asset using a combination of multiple material resources includes: generating a native image using a combination of multiple material resources; generating a number of derivative images based on the native image; and packaging the native image and the derivative image to obtain an image asset; A second determination module is configured to determine a number of material resources included in the art asset; determine an occurrence probability of each material resource, wherein the occurrence probability is used to generate a random value, each random value corresponding to a material resource in the material set; and calculate asset rarity information of the art asset based on the occurrence probability; A detection module, configured to detect a trigger instruction for a display mark of a target digital collection in the image interaction interface; a reading module, configured to read the art assets and asset rarity information of the target digital collection in response to the trigger instruction; a rendering module, configured to render target special effects based on the art assets and / or the asset rarity information, wherein the target special effects are used to display digital collectible special effects and digital collectible rarity special effects; The display identification includes at least one of the following: holder account identification, digital collection art assets, and digital collection identification.

7. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 5 when executed.

8. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Digital asset processing method and device, equipment and storage medium

    CN113743921A

  • System and method for creating, managing, and displaying limited edition, serialized 3D digital collectibles with visual indicators of rarity classifications

    US11170582B1

  • Data processing system and method

    US20050097437A1