CN111739157B - Virtual asset processing method and device - Google Patents

Virtual asset processing method and device Download PDF

Info

Publication number
CN111739157B
CN111739157B CN202010600061.7A CN202010600061A CN111739157B CN 111739157 B CN111739157 B CN 111739157B CN 202010600061 A CN202010600061 A CN 202010600061A CN 111739157 B CN111739157 B CN 111739157B
Authority
CN
China
Prior art keywords
dimension
version
data
parameter data
operation software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010600061.7A
Other languages
Chinese (zh)
Other versions
CN111739157A (en
Inventor
赵海峰
胡一博
袁文瀚
程顺
王昌昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010600061.7A priority Critical patent/CN111739157B/en
Publication of CN111739157A publication Critical patent/CN111739157A/en
Application granted granted Critical
Publication of CN111739157B publication Critical patent/CN111739157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering

Abstract

The application provides a method and a device for processing virtual assets, wherein the method firstly acquires a virtual asset file corresponding to asset operation software of a first version; then, acquiring a material data set in the virtual asset file, wherein the material data set comprises parameter data of each dimension of more than two materials, and the types of the more than two materials are the same; secondly, aiming at the parameter data of each dimension in the material data set, acquiring a standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file; and finally, generating a material data set corresponding to the asset operation software of the second version according to the standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file and a preset version data conversion rule. The application can reduce the calculated amount when converting the version, improve the conversion efficiency and further reduce the occurrence frequency of conversion errors.

Description

Virtual asset processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a virtual asset.
Background
The virtual asset of the three-dimensional model is usually generated by a three-dimensional modeling tool, and after the virtual asset of the three-dimensional model is obtained, the three-dimensional model can be rendered according to the corresponding material data and the mapping data, and finally, the common three-dimensional animation of people is presented. With the rapid development of three-dimensional model technology, numerous versions of three-dimensional model asset run software are presented, and these different versions of asset run software typically use different versions of virtual asset files, and a certain version of asset run software cannot be compatible with any version of virtual asset file, mainly because of different data storage rules. Therefore, it is necessary to convert the version of the virtual asset file.
Disclosure of Invention
Accordingly, an object of the present application is to provide a method and apparatus for processing a virtual asset, which can reduce the calculation amount for converting a first version of material data set into a second version of material data set on the basis of reducing conversion errors as much as possible, thereby improving conversion efficiency and further reducing the occurrence frequency of conversion errors.
In a first aspect, an embodiment of the present application provides a method for processing a virtual asset, where the method includes:
Acquiring a virtual asset file corresponding to the asset operation software of the first version;
acquiring a material data set in the virtual asset file, wherein the material data set comprises parameter data of each dimension of more than two materials, and the types of the more than two materials are the same;
acquiring standard values of the parameter data of each dimension of the more than two materials in the virtual asset file according to the parameter data of each dimension in the material data set;
and generating a material data set corresponding to the second version of asset operation software according to the standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file and a preset version data conversion rule, wherein the preset version data conversion rule is used for representing the calculation relation between the parameter data of the first version of asset operation software in each dimension and the parameter data of the second version of asset operation software in each dimension.
In some possible embodiments, the generating, according to the standard numerical value of the parameter data of each dimension of the two or more materials in the virtual asset file and the preset version data conversion rule, the material data set corresponding to the second version of asset operation software includes:
Determining the parameter data of the second version of the asset operation software in each dimension according to the calculated relation between the parameter data of each dimension of the material corresponding to the second version of the asset operation software indicated in the preset version data conversion rule and the parameter data of at least one dimension of the first version of the asset operation software;
and generating a material data set corresponding to the second version of asset operation software according to the determined parameter data of the second version of asset operation software in each dimension.
In some possible embodiments, for the parameter data of each dimension in the material data set, obtaining a standard value of the parameter data of each dimension of the two or more materials in the virtual asset file includes:
and determining the average value or the median of the parameter data of each dimension in the material data set according to the parameter data of each dimension in the material data set, and taking the average value or the median as the standard value of the parameter data of the corresponding dimension.
In some possible embodiments, for the parameter data of each dimension in the material data set, obtaining a standard value of the parameter data of each dimension of the two or more materials in the virtual asset file includes:
Determining the range of standard values of each dimension according to the numerical distribution condition of the parameter data of each dimension in the material data set aiming at the parameter data of each dimension in the material data set;
and respectively selecting a numerical value from the range of the standard numerical values of each dimension as the standard numerical value of the parameter data of the corresponding dimension.
In some possible embodiments, the numerical distribution of the parameter data of each dimension includes: and the numerical distribution density of the parameter data of each dimension.
In some possible embodiments, the method further comprises:
and generating a virtual asset file corresponding to the asset operation software of the second version according to the material data set corresponding to the asset operation software of the second version and the model data and the mapping data in the virtual asset file corresponding to the asset operation software of the first version.
In some possible embodiments, the generating the virtual asset file corresponding to the second version of the asset operation software according to the material data set corresponding to the second version of the asset operation software and the model data and the map data in the virtual asset file corresponding to the first version of the asset operation software includes:
Obtaining model data and map data in a virtual asset file corresponding to the asset operation software of the first version;
splicing the mapping corresponding to the mapping data, and connecting the spliced mapping to the corresponding material in the material data set;
and establishing a binding relation between the material and the model data, and generating a virtual asset file corresponding to the asset operation software of the second version.
In some possible embodiments, before connecting the stitched map to the corresponding material in the material data set, the method further comprises:
and preprocessing the map.
In some possible embodiments, the class of dimensions includes at least one of:
color parameters, specular parameters, refractive parameters, subsurface scattering parameters.
In some possible embodiments, the type of material includes at least one of:
metal material, plant material, cloth material, skin material, glass material, wood material, paper material.
In a second aspect, an embodiment of the present application further provides an apparatus for processing a virtual asset, where the apparatus includes:
the first acquisition module is used for acquiring a virtual asset file corresponding to the asset operation software of the first version;
The second acquisition module is used for acquiring a material data set in the virtual asset file, wherein the material data set comprises parameter data of each dimension of more than two materials, and the types of the more than two materials are the same;
the third acquisition module is used for acquiring standard values of the parameter data of each dimension of the more than two materials in the virtual asset file according to the parameter data of each dimension in the material data set;
the generation module is used for generating a material data set corresponding to the second version of asset operation software according to standard values of parameter data of each dimension of the more than two materials in the virtual asset file and a preset version data conversion rule, and the preset version data conversion rule is used for representing a calculation relation between the parameter data of the first version of asset operation software in each dimension and the parameter data of the second version of asset operation software in each dimension.
In some possible embodiments, the generating module is specifically configured to:
determining the parameter data of the second version of the asset operation software in each dimension according to the calculated relation between the parameter data of each dimension of the material corresponding to the second version of the asset operation software indicated in the preset version data conversion rule and the parameter data of at least one dimension of the first version of the asset operation software;
And generating a material data set corresponding to the second version of asset operation software according to the determined parameter data of the second version of asset operation software in each dimension.
In some possible embodiments, the third obtaining module is specifically configured to:
and determining the average value or the median of the parameter data of each dimension in the material data set according to the parameter data of each dimension in the material data set, and taking the average value or the median as the standard value of the parameter data of the corresponding dimension.
In some possible embodiments, the third obtaining module is specifically configured to:
determining the range of standard values of each dimension according to the numerical distribution condition of the parameter data of each dimension in the material data set aiming at the parameter data of each dimension in the material data set;
and respectively selecting a numerical value from the range of the standard numerical values of each dimension as the standard numerical value of the parameter data of the corresponding dimension.
In some possible embodiments, the numerical distribution of the parameter data of each dimension includes: and the numerical distribution density of the parameter data of each dimension.
In some possible embodiments, the apparatus further comprises:
and the asset generation module is used for generating a virtual asset file corresponding to the asset operation software of the second version according to the material data set corresponding to the asset operation software of the second version and the model data and the map data in the virtual asset file corresponding to the asset operation software of the first version.
In some possible embodiments, the asset generation module is specifically configured to:
obtaining model data and map data in a virtual asset file corresponding to the asset operation software of the first version;
splicing the mapping corresponding to the mapping data, and connecting the spliced mapping to the corresponding material in the material data set;
and establishing a binding relation between the material and the model data, and generating a virtual asset file corresponding to the asset operation software of the second version.
In one possible implementation, the asset generation module is further configured to:
and preprocessing the map.
In some possible embodiments, the class of dimensions includes at least one of:
color parameters, specular parameters, refractive parameters, subsurface scattering parameters.
In some possible embodiments, the type of material includes at least one of:
metal material, plant material, cloth material, skin material, glass material, wood material, paper material.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium, and a bus, the storage medium may be a memory storing machine-readable instructions executable by the processor, the processor and the memory in communication through the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of:
acquiring a virtual asset file corresponding to the asset operation software of the first version;
acquiring a material data set in the virtual asset file, wherein the material data set comprises parameter data of each dimension of more than two materials, and the types of the more than two materials are the same;
acquiring standard values of the parameter data of each dimension of the more than two materials in the virtual asset file according to the parameter data of each dimension in the material data set;
and generating a material data set corresponding to the second version of asset operation software according to the standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file and a preset version data conversion rule, wherein the preset version data conversion rule is used for representing the calculation relation between the parameter data of the first version of asset operation software in each dimension and the parameter data of the second version of asset operation software in each dimension.
In some possible embodiments, the processor, when executing the standard numerical value of the parameter data of each dimension of the two or more materials in the virtual asset file and the preset version data conversion rule, generates the material data set corresponding to the second version of asset operation software, specifically executes:
determining the parameter data of the second version of the asset operation software in each dimension according to the calculated relation between the parameter data of each dimension of the material corresponding to the second version of the asset operation software indicated in the preset version data conversion rule and the parameter data of at least one dimension of the first version of the asset operation software;
and generating a material data set corresponding to the second version of asset operation software according to the determined parameter data of the second version of asset operation software in each dimension.
In some possible embodiments, the processor, when executing the parameter data for each dimension in the material data set, obtains a standard value of the parameter data for each dimension of the two or more materials in the virtual asset file, specifically performs:
and determining the average value or the median of the parameter data of each dimension in the material data set according to the parameter data of each dimension in the material data set, and taking the average value or the median as the standard value of the parameter data of the corresponding dimension.
In some possible embodiments, the processor, when executing the parameter data for each dimension in the material data set, obtains a standard value of the parameter data for each dimension of the two or more materials in the virtual asset file, specifically performs:
determining the range of standard values of each dimension according to the numerical distribution condition of the parameter data of each dimension in the material data set aiming at the parameter data of each dimension in the material data set;
and respectively selecting a numerical value from the range of the standard numerical values of each dimension as the standard numerical value of the parameter data of the corresponding dimension.
In some possible embodiments, the numerical distribution of the parameter data of each dimension includes: and the numerical distribution density of the parameter data of each dimension.
In one possible implementation, the processor further performs:
and generating a virtual asset file corresponding to the asset operation software of the second version according to the material data set corresponding to the asset operation software of the second version and the model data and the mapping data in the virtual asset file corresponding to the asset operation software of the first version.
In some possible embodiments, the processor, when executing the set of material data corresponding to the second version of the asset operation software, and the model data and the map data in the virtual asset file corresponding to the first version of the asset operation software, generates the virtual asset file corresponding to the second version of the asset operation software, specifically performs:
obtaining model data and map data in a virtual asset file corresponding to the asset operation software of the first version;
splicing the mapping corresponding to the mapping data, and connecting the spliced mapping to the corresponding material in the material data set;
and establishing a binding relation between the material and the model data, and generating a virtual asset file corresponding to the asset operation software of the second version.
In some possible implementations, the processor, prior to executing the connecting the stitched map to the corresponding texture in the texture data set, further executes:
and preprocessing the map.
In some possible embodiments, the class of dimensions includes at least one of:
color parameters, specular parameters, refractive parameters, subsurface scattering parameters.
In some possible embodiments, the type of material includes at least one of:
metal material, plant material, cloth material, skin material, glass material, wood material, paper material.
In a fourth aspect, embodiments of the present application also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a method of virtual asset processing as described above.
The method and the device for processing the virtual asset provided by the embodiment of the application firstly acquire the virtual asset file corresponding to the asset operation software of the first version; then, acquiring a material data set in the virtual asset file, wherein the material data set comprises parameter data of each dimension of more than two materials, and the types of the more than two materials are the same; secondly, aiming at the parameter data of each dimension in the material data set, acquiring a standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file; and finally, generating a material data set corresponding to the second version of asset operation software according to the standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file and a preset version data conversion rule, wherein the preset version data conversion rule is used for representing the calculation relation between the parameter data of the first version of asset operation software in each dimension and the parameter data of the second version of asset operation software in each dimension. According to the application, the material data set corresponding to the asset operation software of the second version can be generated through the standard numerical value of the parameter data of each dimension of more than two materials in the virtual asset file and the preset version data conversion rule, so that the calculated amount during version conversion can be reduced, the conversion efficiency is improved, and the occurrence frequency of conversion errors is further reduced.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a flow chart of a method of virtual asset processing provided by an embodiment of the application;
FIG. 2 is a schematic diagram of an apparatus for virtual asset processing according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another apparatus for virtual asset processing according to an embodiment of the present application;
fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, every other embodiment obtained by a person skilled in the art without making any inventive effort falls within the scope of protection of the present application.
It has been found that when a version conversion of an asset file is to be performed, the texture data set of each virtual asset under a new version to be converted needs to be re-established, and the texture data in the texture data set of the new version needs to be determined according to the texture data set of the old version, which is usually done by manual calculation. Because a large number of material data sets exist in the asset file, and differences exist among the material data of each material data set, the calculation amount required for converting the material data sets of the old version into the material data sets of the new version one by one is huge, the conversion efficiency is low, and conversion errors are easy to occur.
Based on this, the embodiment of the application provides a virtual asset processing method, so as to reduce the calculated amount of version conversion of a material data set, improve the conversion efficiency and further reduce the occurrence frequency of conversion errors.
Referring to fig. 1, fig. 1 is a flowchart of a method for processing a virtual asset according to an embodiment of the application. As shown in fig. 1, a method for processing a virtual asset provided by an embodiment of the present application includes:
s101, acquiring a virtual asset file corresponding to the asset operation software of the first version.
Wherein the virtual asset file may refer to an asset file of a three-dimensional model, which may include a plurality of types, such as a character model, a plant model, a building model, a tool model, and the like. The material data set stores material data of the virtual asset in a plurality of different data dimensions. The material data reflects the material and texture of the three-dimensional model, and in the rendering program, the material data set is the combination of various visual attributes of the surface of the three-dimensional model, wherein the visual attributes refer to the color, texture, smoothness, transparency, reflectivity, refractive index, luminosity and the like of the surface of the three-dimensional model. Specifically, the texture data set may be represented in the form of a texture ball. The texture data set is one of virtual asset files of a three-dimensional model, and the asset files may include model data, map data, and texture data sets.
Further, the first version may refer to a version in which the asset operation software operable by the virtual asset is currently located, and the virtual asset file of the three-dimensional model under the first version cannot be rendered on the asset operation software of the second version, where the asset operation software of the second version generally has a newer rendering algorithm, and the data format and the data content of the virtual asset file used are also generally different from those of the first version, and the second version may be a version higher or lower than those of the first version. For example, in a first version, the texture parameter set may include 3 data dimensions "a, b, c", while in a second version, the texture parameter set may include 4 data dimensions "a, d, e, f". The material parameter of the dimension d under the second version may be obtained by calculating the material parameter corresponding to the parameter dimension b and the parameter dimension c under the first version.
In some possible embodiments, the class of dimensions includes at least one of:
color parameters, specular parameters, refractive parameters, subsurface scattering parameters.
In some possible embodiments, the type of material includes at least one of:
metal material, plant material, cloth material, skin material, glass material, wood material, paper material.
S102, acquiring a material data set in the virtual asset file, wherein the material data set comprises parameter data of each dimension of more than two materials, and the types of the more than two materials are the same.
S103, aiming at the parameter data of each dimension in the material data set, acquiring the standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file.
In this step, after the material data sets in the virtual asset file are acquired, a standard value of the data dimension under the first version may be determined according to the material data of each material data set under the same data dimension. Since the materials of the at least two virtual asset files are the same, the determined standard value can be used to represent any material data set in the virtual asset files, which is the same as the type of the material.
In some possible embodiments, step S103 may include:
and determining the average value or the median of the parameter data of each dimension in the material data set according to the parameter data of each dimension in the material data set, and taking the average value or the median as the standard value of the parameter data of the corresponding dimension.
In this step, the average value or median of the parameter data of each dimension in the plurality of material data sets may be directly calculated, and the determined average value or median may be used as the standard value of the parameter data of the corresponding dimension.
Thus, the standard value obtained by calculating the average value or the median can better reflect the original material data, so that the generated material data set of the second version is more accurate.
In some possible embodiments, step S103 may include:
determining the range of standard values of each dimension according to the numerical distribution condition of the parameter data of each dimension in the material data set aiming at the parameter data of each dimension in the material data set;
and respectively selecting a numerical value from the range of the standard numerical values of each dimension as the standard numerical value of the parameter data of the corresponding dimension.
In the step, the range of the standard numerical value can be determined according to the numerical distribution condition of the material data in the material data set, and the parameter data in each material data set can be comprehensively considered by analyzing the numerical distribution condition, so that the selection of the range of the standard numerical value is more reasonable, and the standard numerical value can reflect the parameter data of the original material on the whole.
After determining the standard data range, a value of the parameter data which can best represent the original material is selected as the standard value of the parameter data under the data dimension of the first version. Specifically, the intermediate value of the range, or the value with the largest number of occurrences in the range, may be selected as the standard value.
In some possible embodiments, the numerical distribution of the parameter data of each dimension includes: and the numerical distribution density of the parameter data of each dimension.
In this step, since the numerical distribution density can reflect the distribution interval of the parameter data of the material data in the first version, a range with the closest parameter data distribution can be selected as the standard data range according to the numerical distribution density, and the length of the standard numerical range can be set small enough to make the numerical value in the range more representative.
S104, generating a material data set corresponding to the second version of asset operation software according to standard values of parameter data of each dimension of the more than two materials in the virtual asset file and a preset version data conversion rule, wherein the preset version data conversion rule is used for representing a calculation relation between the parameter data of the first version of asset operation software in each dimension and the parameter data of the second version of asset operation software in each dimension.
The version data conversion rule is used for representing the calculation relation between the parameter data of the first version of asset operation software in each dimension and the parameter data of the second version of asset operation software in each dimension, and the parameter value of the first version in each data dimension can be converted into the parameter data of the second version in each data dimension by utilizing the version data conversion rule. The version data conversion rules may be determined from a relationship between each dimension of the second version and each dimension of the first version.
In this step, after determining the standard value of the parameter data of each dimension in the material data set under the first version, the standard value may be converted into the parameter data of each dimension under the second version by using the version data conversion rule, so as to generate the material data set corresponding to the asset operation software of the second version.
In some possible embodiments, the method further comprises:
and generating a virtual asset file corresponding to the asset operation software of the second version according to the material data set corresponding to the asset operation software of the second version and the model data and the mapping data in the virtual asset file corresponding to the asset operation software of the first version.
In the step, after determining to generate the material data set corresponding to the asset operation software of the second version, the model data and the map data of the virtual asset file under the first version may be connected with the material data set under the second version to obtain the virtual asset file corresponding to the asset operation software of the second version.
In one possible implementation manner, the generating the virtual asset file corresponding to the second version of the asset operation software according to the material data set corresponding to the second version of the asset operation software and the model data and the map data in the virtual asset file corresponding to the first version of the asset operation software includes:
obtaining model data and map data in a virtual asset file corresponding to the asset operation software of the first version;
Splicing the mapping corresponding to the mapping data, and connecting the spliced mapping to the corresponding material in the material data set;
and establishing a binding relation between the material and the model data, and generating a virtual asset file corresponding to the asset operation software of the second version.
In this step, a plurality of maps corresponding to the map data in the virtual asset file may be spliced, where each map has corresponding map data, where the map data may include information such as a size, an identity identifier, a material to which the corresponding map belongs, and after the splicing of the maps is completed, the spliced map may be connected to a corresponding material in the material data set, and then a binding relationship is established between the material and model data of the first version of virtual asset model, and finally a virtual asset file corresponding to the second version of asset operation software is generated.
In one possible embodiment, before connecting the spliced map to the corresponding material in the material data set, the method further comprises:
and preprocessing the map.
In this step, the map may be preprocessed before connection, so that the spliced map may be correctly connected to a corresponding material in the material data set, and specifically, operations such as format adjustment, size adjustment, and data adjustment may be performed on the map, so that the map in the first version may be operated under the asset operation software in the second version.
The method for processing the virtual asset provided by the embodiment of the application comprises the steps of firstly, obtaining a virtual asset file corresponding to asset operation software of a first version; then, acquiring a material data set in the virtual asset file, wherein the material data set comprises parameter data of each dimension of more than two materials, and the types of the more than two materials are the same; secondly, aiming at the parameter data of each dimension in the material data set, acquiring a standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file; and finally, generating a material data set corresponding to the second version of asset operation software according to the standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file and a preset version data conversion rule, wherein the preset version data conversion rule is used for representing the calculation relation between the parameter data of the first version of asset operation software in each dimension and the parameter data of the second version of asset operation software in each dimension. According to the application, the material data set corresponding to the asset operation software of the second version can be generated through the standard numerical value of the parameter data of each dimension of more than two materials in the virtual asset file and the preset version data conversion rule, so that the calculated amount during version conversion can be reduced, the conversion efficiency is improved, and the occurrence frequency of conversion errors is further reduced.
Referring to fig. 2 and 3, fig. 2 is a schematic structural diagram of an apparatus for processing virtual assets according to an embodiment of the present application, and fig. 3 is a schematic structural diagram of an apparatus for processing virtual assets according to another embodiment of the present application. As shown in fig. 2, the apparatus 200 for virtual asset processing includes:
a first obtaining module 210, configured to obtain a virtual asset file corresponding to the first version of asset operation software;
a second obtaining module 220, configured to obtain a material data set in the virtual asset file, where the material data set includes parameter data of each dimension of two or more materials, and the types of the two or more materials are the same;
a third obtaining module 230, configured to obtain, for the parameter data of each dimension in the material data set, a standard numerical value of the parameter data of each dimension of the two or more materials in the virtual asset file;
the generating module 240 is configured to generate a material data set corresponding to the second version of asset operation software according to the standard values of the parameter data of each dimension of the two or more materials in the virtual asset file and a preset version data conversion rule, where the preset version data conversion rule is used to characterize a calculation relationship between the parameter data of the first version of asset operation software in each dimension and the parameter data of the second version of asset operation software in each dimension.
As shown in fig. 3, the apparatus 300 for virtual asset processing includes a first obtaining module 310, a second obtaining module 320, a third obtaining module 330, and a generating module 340;
in some possible embodiments, the generating module 340 is specifically configured to:
determining the parameter data of the second version of the asset operation software in each dimension according to the calculated relation between the parameter data of each dimension of the material corresponding to the second version of the asset operation software indicated in the preset version data conversion rule and the parameter data of at least one dimension of the first version of the asset operation software;
and generating a material data set corresponding to the second version of asset operation software according to the determined parameter data of the second version of asset operation software in each dimension.
In some possible embodiments, the third obtaining module 330 is specifically configured to:
and determining the average value or the median of the parameter data of each dimension in the material data set according to the parameter data of each dimension in the material data set, and taking the average value or the median as the standard value of the parameter data of the corresponding dimension.
In some possible embodiments, the third obtaining module 330 is specifically configured to:
determining the range of standard values of each dimension according to the numerical distribution condition of the parameter data of each dimension in the material data set aiming at the parameter data of each dimension in the material data set;
and respectively selecting a numerical value from the range of the standard numerical values of each dimension as the standard numerical value of the parameter data of the corresponding dimension.
In some possible embodiments, the numerical distribution of the parameter data of each dimension includes: and the numerical distribution density of the parameter data of each dimension.
In some possible embodiments, the apparatus 300 for virtual asset processing further comprises:
the asset generation module 350 is configured to generate a virtual asset file corresponding to the second version of asset operation software according to the material data set corresponding to the second version of asset operation software, and the model data and the map data in the virtual asset file corresponding to the first version of asset operation software.
In some possible embodiments, the asset generation module 350 is specifically configured to:
obtaining model data and map data in a virtual asset file corresponding to the asset operation software of the first version;
Splicing the mapping corresponding to the mapping data, and connecting the spliced mapping to the corresponding material in the material data set;
and establishing a binding relation between the material and the model data, and generating a virtual asset file corresponding to the asset operation software of the second version.
In one possible implementation, the asset generation module 350 is further configured to:
and preprocessing the map.
In some possible embodiments, the class of dimensions includes at least one of:
color parameters, specular parameters, refractive parameters, subsurface scattering parameters.
In some possible embodiments, the type of material includes at least one of:
metal material, plant material, cloth material, skin material, glass material, wood material, paper material.
The device for processing the virtual asset provided by the embodiment of the application firstly acquires a virtual asset file corresponding to the asset operation software of a first version; then, acquiring a material data set in the virtual asset file, wherein the material data set comprises parameter data of each dimension of more than two materials, and the types of the more than two materials are the same; secondly, aiming at the parameter data of each dimension in the material data set, acquiring a standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file; and finally, generating a material data set corresponding to the second version of asset operation software according to the standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file and a preset version data conversion rule, wherein the preset version data conversion rule is used for representing the calculation relation between the parameter data of the first version of asset operation software in each dimension and the parameter data of the second version of asset operation software in each dimension. According to the application, the material data set corresponding to the asset operation software of the second version can be generated through the standard numerical value of the parameter data of each dimension of more than two materials in the virtual asset file and the preset version data conversion rule, so that the calculated amount during version conversion can be reduced, the conversion efficiency is improved, and the occurrence frequency of conversion errors is further reduced.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the application. As shown in fig. 4, the electronic device 400 includes a processor 410, a memory 420, and a bus 430.
The memory 420 stores machine readable instructions executable by the processor 410, the processor 410 and the memory 420 communicate via a bus 430 when the electronic device 400 is running, the memory 420 is a storage medium, and the machine readable instructions when executed by the processor 410 can perform the following operations:
acquiring a virtual asset file corresponding to the asset operation software of the first version;
acquiring a material data set in the virtual asset file, wherein the material data set comprises parameter data of each dimension of more than two materials, and the types of the more than two materials are the same;
acquiring standard values of the parameter data of each dimension of the more than two materials in the virtual asset file according to the parameter data of each dimension in the material data set;
and generating a material data set corresponding to the second version of asset operation software according to the standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file and a preset version data conversion rule, wherein the preset version data conversion rule is used for representing the calculation relation between the parameter data of the first version of asset operation software in each dimension and the parameter data of the second version of asset operation software in each dimension.
In some possible embodiments, the processor 410, when executing the standard numerical value of the parameter data of each dimension of the two or more materials in the virtual asset file and the preset version data conversion rule, generates the material data set corresponding to the second version of the asset operation software, specifically executes:
determining the parameter data of the second version of the asset operation software in each dimension according to the calculated relation between the parameter data of each dimension of the material corresponding to the second version of the asset operation software indicated in the preset version data conversion rule and the parameter data of at least one dimension of the first version of the asset operation software;
and generating a material data set corresponding to the second version of asset operation software according to the determined parameter data of the second version of asset operation software in each dimension.
In some possible embodiments, the processor 410, when executing the parameter data for each dimension in the material data set, obtains the standard value of the parameter data for each dimension of the two or more materials in the virtual asset file, specifically performs:
And determining the average value or the median of the parameter data of each dimension in the material data set according to the parameter data of each dimension in the material data set, and taking the average value or the median as the standard value of the parameter data of the corresponding dimension.
In some possible embodiments, the processor 410, when executing the parameter data for each dimension in the material data set, obtains the standard value of the parameter data for each dimension of the two or more materials in the virtual asset file, specifically performs:
determining the range of standard values of each dimension according to the numerical distribution condition of the parameter data of each dimension in the material data set aiming at the parameter data of each dimension in the material data set;
and respectively selecting a numerical value from the range of the standard numerical values of each dimension as the standard numerical value of the parameter data of the corresponding dimension.
In some possible embodiments, the numerical distribution of the parameter data of each dimension includes: and the numerical distribution density of the parameter data of each dimension.
In one possible implementation, the processor 410 further performs:
And generating a virtual asset file corresponding to the asset operation software of the second version according to the material data set corresponding to the asset operation software of the second version and the model data and the mapping data in the virtual asset file corresponding to the asset operation software of the first version.
In some possible embodiments, the processor 410, when executing the set of texture data corresponding to the second version of the asset operation software, and the model data and the map data in the virtual asset file corresponding to the first version of the asset operation software, generates the virtual asset file corresponding to the second version of the asset operation software, specifically performs:
obtaining model data and map data in a virtual asset file corresponding to the asset operation software of the first version;
splicing the mapping corresponding to the mapping data, and connecting the spliced mapping to the corresponding material in the material data set;
and establishing a binding relation between the material and the model data, and generating a virtual asset file corresponding to the asset operation software of the second version.
In some possible implementations, the processor 410, prior to executing the connecting the stitched map to the corresponding texture in the texture data set, further executes:
And preprocessing the map.
In some possible embodiments, the class of dimensions includes at least one of:
color parameters, specular parameters, refractive parameters, subsurface scattering parameters.
In some possible embodiments, the type of material includes at least one of:
metal material, plant material, cloth material, skin material, glass material, wood material, paper material.
The embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor may perform the steps of the method for processing a virtual asset in the method embodiment shown in fig. 1, and a specific implementation manner may refer to the method embodiment and will not be described herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (11)

1. A method of virtual asset handling, the method comprising:
acquiring a virtual asset file corresponding to the asset operation software of the first version;
acquiring a material data set in the virtual asset file, wherein the material data set comprises parameter data of each dimension of more than two materials, and the types of the more than two materials are the same;
Acquiring standard values of the parameter data of each dimension of the more than two materials in the virtual asset file according to the parameter data of each dimension in the material data set;
generating a material data set corresponding to the second version of asset operation software according to standard values of parameter data of each dimension of the more than two materials in the virtual asset file and a preset version data conversion rule, wherein the preset version data conversion rule is used for representing a calculation relation between the parameter data of the first version of asset operation software in each dimension and the parameter data of the second version of asset operation software in each dimension; the data format and data content of the second version of asset operation software are different from those of the first version of asset operation software;
for the parameter data of each dimension in the material data set, obtaining a standard value of the parameter data of each dimension of the two or more materials in the virtual asset file includes:
determining an average value or a median of the parameter data of each dimension in the material data set according to the parameter data of each dimension in the material data set, and taking the average value or the median as a standard value of the parameter data of the corresponding dimension; or alternatively, the process may be performed,
Determining the range of standard values of each dimension according to the numerical distribution condition of the parameter data of each dimension in the material data set aiming at the parameter data of each dimension in the material data set;
and respectively selecting a numerical value from the range of the standard numerical values of each dimension as the standard numerical value of the parameter data of the corresponding dimension.
2. The method of claim 1, wherein generating the material data set corresponding to the second version of asset operation software according to the standard values of the parameter data of each dimension of the two or more materials in the virtual asset file and the preset version data conversion rule includes:
determining the parameter data of the second version of the asset operation software in each dimension according to the calculated relation between the parameter data of each dimension of the material corresponding to the second version of the asset operation software indicated in the preset version data conversion rule and the parameter data of at least one dimension of the first version of the asset operation software;
and generating a material data set corresponding to the second version of asset operation software according to the determined parameter data of the second version of asset operation software in each dimension.
3. The method according to claim 1, wherein the numerical distribution of the parameter data for each dimension includes: and the numerical distribution density of the parameter data of each dimension.
4. The method according to claim 1, wherein the method further comprises:
and generating a virtual asset file corresponding to the asset operation software of the second version according to the material data set corresponding to the asset operation software of the second version and the model data and the mapping data in the virtual asset file corresponding to the asset operation software of the first version.
5. The method of claim 4, wherein generating the virtual asset file corresponding to the second version of the asset operating software from the set of material data corresponding to the second version of the asset operating software and the model data and map data in the virtual asset file corresponding to the first version of the asset operating software comprises:
obtaining model data and map data in a virtual asset file corresponding to the asset operation software of the first version;
splicing the mapping corresponding to the mapping data, and connecting the spliced mapping to the corresponding material in the material data set;
And establishing a binding relation between the material and the model data, and generating a virtual asset file corresponding to the asset operation software of the second version.
6. The method of claim 5, wherein prior to connecting the stitched map to the corresponding material in the material data set, the method further comprises:
and preprocessing the map.
7. The method of claim 1, wherein the class of dimensions comprises at least one of:
color parameters, specular parameters, refractive parameters, subsurface scattering parameters.
8. The method of claim 1, wherein the type of material comprises at least one of:
metal material, plant material, cloth material, skin material, glass material, wood material, paper material.
9. An apparatus for virtual asset processing, the apparatus comprising:
the first acquisition module is used for acquiring a virtual asset file corresponding to the asset operation software of the first version;
the second acquisition module is used for acquiring a material data set in the virtual asset file, wherein the material data set comprises parameter data of each dimension of more than two materials, and the types of the more than two materials are the same;
The third acquisition module is used for acquiring standard values of the parameter data of each dimension of the more than two materials in the virtual asset file according to the parameter data of each dimension in the material data set;
the generation module is used for generating a material data set corresponding to the asset operation software of the second version according to the standard numerical value of the parameter data of each dimension of the more than two materials in the virtual asset file and a preset version data conversion rule, and the preset version data conversion rule is used for representing the calculation relation between the parameter data of the asset operation software of the first version in each dimension and the parameter data of the asset operation software of the second version in each dimension; the data format and data content of the second version of asset operation software are different from those of the first version of asset operation software;
the third obtaining module is specifically configured to:
determining an average value or a median of the parameter data of each dimension in the material data set according to the parameter data of each dimension in the material data set, and taking the average value or the median as a standard value of the parameter data of the corresponding dimension; or alternatively, the process may be performed,
Determining the range of standard values of each dimension according to the numerical distribution condition of the parameter data of each dimension in the material data set aiming at the parameter data of each dimension in the material data set;
and respectively selecting a numerical value from the range of the standard numerical values of each dimension as the standard numerical value of the parameter data of the corresponding dimension.
10. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method of virtual asset processing as claimed in any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, performs the steps of the method of processing virtual assets according to any one of claims 1 to 8.
CN202010600061.7A 2020-06-28 2020-06-28 Virtual asset processing method and device Active CN111739157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010600061.7A CN111739157B (en) 2020-06-28 2020-06-28 Virtual asset processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010600061.7A CN111739157B (en) 2020-06-28 2020-06-28 Virtual asset processing method and device

Publications (2)

Publication Number Publication Date
CN111739157A CN111739157A (en) 2020-10-02
CN111739157B true CN111739157B (en) 2023-09-15

Family

ID=72651462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010600061.7A Active CN111739157B (en) 2020-06-28 2020-06-28 Virtual asset processing method and device

Country Status (1)

Country Link
CN (1) CN111739157B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996362A (en) * 2009-08-18 2011-03-30 英特尔公司 Real-time collaborative asset management for computer graphics
CN103559374A (en) * 2013-11-25 2014-02-05 中国科学院自动化研究所 Method for subdividing surface split type curved surfaces on multi-submesh model
CN105991765A (en) * 2015-03-16 2016-10-05 洛克威尔自动控制技术股份有限公司 Method for backuping the industrial automatic factory in the cloud
CN110866965A (en) * 2019-11-14 2020-03-06 珠海金山网络游戏科技有限公司 Mapping drawing method and device for three-dimensional model

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060259386A1 (en) * 2005-05-16 2006-11-16 Knowlton Kier L Building digital assets for use with software applications
US20180052867A1 (en) * 2016-08-17 2018-02-22 Tippett Studio Computer System for Storing and Managing Digital Assets Using Virtual Repositories for Flexible Redirection of References

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996362A (en) * 2009-08-18 2011-03-30 英特尔公司 Real-time collaborative asset management for computer graphics
CN103559374A (en) * 2013-11-25 2014-02-05 中国科学院自动化研究所 Method for subdividing surface split type curved surfaces on multi-submesh model
CN105991765A (en) * 2015-03-16 2016-10-05 洛克威尔自动控制技术股份有限公司 Method for backuping the industrial automatic factory in the cloud
CN110866965A (en) * 2019-11-14 2020-03-06 珠海金山网络游戏科技有限公司 Mapping drawing method and device for three-dimensional model

Also Published As

Publication number Publication date
CN111739157A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
Mi et al. Abstraction of 2D shapes in terms of parts
CN108763268A (en) A kind of batch processing method of threedimensional model and device, storage medium
CN112036145A (en) Financial statement identification method and device, computer equipment and readable storage medium
CN112989482A (en) BIM model data generation method and device and building method and device
CN109858059B (en) Application method of virtual reality technology based on CAD (computer-aided design) super-large model in hydropower station simulation
CN111739157B (en) Virtual asset processing method and device
US10372571B2 (en) Method and apparatus for testing compatibility of 3D engine
CN109063223B (en) BIM model light weight method and device and BIM model processing method and system
CN113468626B (en) Drawing generation method and device, electronic equipment and storage medium
WO2016083981A1 (en) Infeasibility management in e-sourcing systems
CN114969586A (en) BIM (building information modeling) graphic engine loading method and device based on WEB side
CN114461959A (en) WEB side online display method and device of BIM data and electronic equipment
CN116956838A (en) Project determining method and device for engineering quantity list
CN113536737A (en) Material code generation method and device and electronic equipment
CN111859939A (en) Text matching method and system and computer equipment
CN110458931B (en) LOD (level of detail) grade-based three-dimensional model data processing method and related equipment
CN117258303B (en) Model comparison method and related device
CN114139248A (en) Model material upgrading method and device, electronic equipment and storage medium
CN114237746B (en) Configuration information management method, device, equipment and storage medium based on C language
CN115480745B (en) Code generation method and device based on configuration file
CN114140569B (en) Three-dimensional scene serialization compression method
CN107870817B (en) Multi-dimensional parameter display method, client and server
CN110569065B (en) Processor instruction code automatic generation method and device based on domain filling
CN115526973A (en) Skin rendering method and device, electronic equipment and storage medium
CN117725766A (en) Verification method, device and equipment of geometric modeling model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant