CN109783137A - Inspection method, the device and system of fine arts resource - Google Patents
Inspection method, the device and system of fine arts resource Download PDFInfo
- Publication number
- CN109783137A CN109783137A CN201910122358.4A CN201910122358A CN109783137A CN 109783137 A CN109783137 A CN 109783137A CN 201910122358 A CN201910122358 A CN 201910122358A CN 109783137 A CN109783137 A CN 109783137A
- Authority
- CN
- China
- Prior art keywords
- fine arts
- arts resource
- resource
- rule
- database
- 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.)
- Pending
Links
Abstract
The invention discloses inspection method, the device and system of a kind of fine arts resource.Wherein, this method comprises: obtaining the first fine arts resource to be committed;First fine arts resource is parsed, the fine arts resource data after being parsed;By the fine arts resource data that the second fine arts resource updates stored in first database are after parsing, wherein the version of the second fine arts resource is different from the version of the first fine arts resource;The second fine arts resource is checked based on default inspection rule.The present invention solves the technical issues of inspection low efficiency of fine arts resource.
Description
Technical field
The present invention relates to computer fields, in particular to inspection method, the device and system of a kind of fine arts resource.
Background technique
Fine arts resource is one of main element of game, and game developer is necessary to ensure that correctness and the rule of fine arts resource
Plasticity.Therefore, it in actual play exploitation, needs that fine arts resource is managed and is checked.
Currently, can check by way of full scan inspection and increment inspection fine arts resource file, pass through file
Folder is searched and editing machine opens the mode checked and fine arts resource file is searched and retrieved, in addition, can also pass through scanning beauty
Art resource file obtains influencing the information of client performance expense, and determines according to the information mode of the performance cost of client
The performance cost of client is checked.Due to the difference of type of play, lead to production specification, the Naming conventions of fine arts resource
Different with the requirement of performance, different types of fine arts resource is not also identical to the production requirement of model, therefore, in order to meet project
Demand, usual tester rewrite inspection rule for the demand of project.
However, number of files exists since the stock number of the resource of fine arts resources bank storage is huge with ten thousand orders of magnitude.Using
The review time for needing to consume when full scan test mode is checked is long;And the mode of increment inspection may ignore it
His inspection rule, for example, may be impacted to the other fine arts resources when modification and deletion fine arts resource file.Separately
Outside, it is taken a long time in such a way that file is searched, editing machine checks fine arts resource, the letter of fine arts resource can not be obtained rapidly
Breath can not also be directly obtained the association situation of fine arts resource and the situation that is cited, and it is even more impossible to the fine arts are realized in a manner of convenient and fast
The management on large of resource.
Scan that special efficacy file obtains due to the mode of existing some special efficacy of inspection performance consumption in gaming is this
Expenditure Levels of the special efficacy in whole life cycle, therefore, it is impossible to after knowing the performance cost peak value of the special efficacy and entering game
Performance cost situation, and game client when there is Caton usually when special efficacy is concentrated and is played.
Although working as and needing to new projects or hair finally, existing fine arts resource inspection method has certain versatility
When the fine arts resource file to change more is checked, need to redeploy fine arts resource checking tool, and rewrite new inspection
Rule is looked into, the development cost and maintenance cost of game are increased.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides inspection method, the device and system of a kind of fine arts resource, at least to solve fine arts money
The technical issues of inspection low efficiency in source.
According to an aspect of an embodiment of the present invention, a kind of inspection method of fine arts resource is provided, comprising: obtain wait mention
The first fine arts resource handed over;First fine arts resource is parsed, the fine arts resource data after being parsed;By first database
Second fine arts resource updates of middle storage are the fine arts resource data after parsing, wherein the version of the second fine arts resource is different from
The version of first fine arts resource;The second fine arts resource is checked based on default inspection rule.
Further, the inspection method of fine arts resource further include: the fine arts resource after obtaining the second fine arts resource and parsing
Difference section between data;The second fine arts resource is updated based on difference section.
Further, the inspection method of fine arts resource further include: key message is extracted from difference section, wherein crucial
Information is to be greater than the information of default influence degree to the influence degree of the inspection result of fine arts resource;Based on key message to second
Fine arts resource is updated.
Further, the inspection method of fine arts resource further include: send the first control instruction to client;Receive client
According to the spatial cue of the second fine arts resource of the first control instruction feedback in the client;Spatial cue is parsed, is obtained
Spatial cue after to parsing;The second fine arts resource is updated based on the spatial cue after parsing.
Further, the inspection method of fine arts resource further include: obtain first and check rule;The language for checking rule for first
Speech is converted to preset language, obtains the second inspection rule;Storage second checks rule into the second database.
Further, the inspection method of fine arts resource further include: receive the second control instruction, wherein the second control instruction
The second fine arts resource is checked for control server;Determine rule mark corresponding with the second control instruction;Based on rule
Then mark determines default inspection rule from the second database;The second fine arts resource is checked based on default inspection rule,
Obtain inspection result.
Further, the inspection method of fine arts resource further include: third fine arts resource is extracted from first database;By
Three fine arts resources are sent to client, wherein client is rendered and/or played to third fine arts resource, and performance ginseng is generated
Number;The performance parameter of client is obtained, and determines the performance cost of third fine arts resource based on performance parameter.
Further, the inspection method of fine arts resource further include: obtain the access information of project to be committed, wherein access
Information includes at least: address information, the account and password of project to be committed of the first fine arts resource;Based on access information obtain to
First fine arts resource corresponding to submission project.
According to another aspect of an embodiment of the present invention, a kind of inspection system of fine arts resource is additionally provided, comprising: service
Device obtains the first fine arts resource to be committed, parses to the first fine arts resource, the fine arts resource data after being parsed,
And by the second fine arts resource updates stored in first database be the fine arts resource data after parsing, rule is checked based on default
Second fine arts resource is checked, wherein the version of the second fine arts resource is different from the version of the first fine arts resource;Client
End carries out the second fine arts resource stored in first database with control server for sending control instruction to server
It checks;Wherein, server includes: first database, for storing the second fine arts resource;Second database, it is default for storing
Check rule.
According to another aspect of an embodiment of the present invention, a kind of check device of fine arts resource is additionally provided, comprising: obtain mould
Block, for obtaining the first fine arts resource to be committed;Parsing module is parsed for parsing to the first fine arts resource
Fine arts resource data afterwards;Update module, the second fine arts resource updates for will store in first database are after parsing
Fine arts resource data, wherein the version of the second fine arts resource is different from the version of the first fine arts resource;It checks module, is used for base
Check that rule checks the second fine arts resource in default.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which includes storage
Program, wherein equipment where control storage medium executes the inspection method of fine arts resource in program operation.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, which is used to run program,
In, the inspection method of fine arts resource is executed when program is run.
In embodiments of the present invention, by the way of database purchase treated fine arts resource, first fine arts are being obtained
After resource, by being parsed to the first fine arts resource, and by the first fine arts resource after parsing to being deposited in first database
Second fine arts resource of storage is updated, and finally checks that rule checks the second fine arts resource based on default.
In above process, it just stores it in database, and is checked after being parsed to fine arts resource,
It avoids and it is parsed and is checked again after obtaining fine arts resource data in database, the inspection of fine arts resource is caused to be imitated
The low problem of rate.In addition, system when submitting to fine arts resource, can also be updated database, fine arts money is realized
The real-time update in source.
It can be seen that scheme provided herein has achieved the purpose that the inspection efficiency for improving fine arts resource, and then solve
The technical issues of inspection low efficiency for fine arts resource of having determined.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the inspection method of fine arts resource according to an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of the display interface of optional client according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram at optional project management interface according to an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of optional special efficacy inspection parameter set interface according to an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of optional pattern checking parameter setting interface according to an embodiment of the present invention;
Fig. 6 is a kind of frame diagram of the inspection system of optional fine arts resource according to an embodiment of the present invention;And
Fig. 7 is a kind of schematic diagram of the check device of fine arts resource according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Firstly, the part noun or term that occur during the embodiment of the present application is described are suitable for following solution
It releases:
Full scan inspection refers to and carries out traversal inspection to all fine arts resources, and find out mistake or do not meet specification
Fine arts resource mode.
Increment test mode refers to the mode checked the newly-increased resource or modification resource submitted every time.
According to embodiments of the present invention, a kind of inspection method embodiment of fine arts resource is provided, it should be noted that attached
The step of process of figure illustrates can execute in a computer system such as a set of computer executable instructions, though also,
So logical order is shown in flow charts, but in some cases, it can be to be different from shown by sequence execution herein
Or the step of description.
Fig. 1 is the flow chart of the inspection method of fine arts resource according to an embodiment of the present invention, as shown in Figure 1, this method packet
Include following steps:
Step S102 obtains the first fine arts resource to be committed.
It should be noted that above-mentioned first fine arts resource can be the fine arts resource that ought be not limited in game, including but not
It is limited to model resource, scenario resources, textures resource, special efficacy resource.
In a kind of optional scheme, user can submit fine arts resource by user end to server.Wherein, in server
With data warehouse, which can receive the fine arts resource that user submits, and server can obtain the fine arts in data warehouse
Resource, and it is handled.
Step S104, parses the first fine arts resource, the fine arts resource data after being parsed.
The second fine arts resource updates stored in first database are the fine arts resource data after parsing by step S106,
Wherein, the version of the second fine arts resource is different from the version of the first fine arts resource.
It should be noted that first database specifically includes the pass of the second fine arts resource for storing the second fine arts resource
Key information and relation data, wherein first database includes at least following tables of data: resource general purpose table (namal_file_
Table), resources relationship table (file_relation_table), model resource tables of data (model_table), special efficacy number of resources
According to table (sfx_table), scenario resources tables of data (scn_table), textures resource data table (texture_table).Wherein,
Resource general purpose table is used to save the file path (file_url) of the second fine arts resource, submitter (author), submission time etc.
Information, file path can be used as the Major key in resource general purpose table;Resources relationship table is for saving host file path (file_
Url), the contents such as reference document path (file_url_cited) and reference type (cite_type);Model resource tables of data
For the various peculiar key messages of preservation model resource, for example, bone information, gridding information, mounting point information, action message
Deng;Special efficacy resource data table is used to save the various peculiar key messages of the special efficacy resource in fine arts resource, for example, special efficacy layer
The contents such as number, special efficacy population, special efficacy batch, special efficacy face number;Scenario resources tables of data is provided for saving scene in fine arts resource
The various peculiar key messages in source, for example, spectrogram (LightMap) information, terrain information etc..Textures resource data table is used for
The various peculiar key messages for saving textures resource in fine arts resource, for example, textures length and width, resolution ratio, MD5 (Message
Digest Algorithm, i.e. Message Digest Algorithm 5) code, figure digit etc..
In addition it is also necessary to explanation, to the update of fine arts resource include newly-increased fine arts resource, modification fine arts resource and
Delete fine arts resource.
Optionally, whether the fine arts resource that server can detect in data warehouse updates, and in data warehouse
When fine arts resource updates, the fine arts resource of the fine arts resource of current version and last revision in comparison data warehouse, according to
The different pairs of version are updated according to the fine arts resource in library.
Step S108 checks the second fine arts resource based on default inspection rule.
It should be noted that user default inspection rule can be carried out by client it is customized, and will be customized after
It is default to check that rule is stored in the second database.User can be regular for the different customized different inspections of fine arts resource,
So that the inspection system of fine arts resource provided herein reduces trip with flexibility and under the premise of versatility
The development cost and maintenance cost of play.
Optionally, server can carry out following check: Naming conventions, reference deletion condition, special efficacy to the second fine arts resource
The redundancy feelings that performance and correctness, model performance and correctness, scene performance, textures relevant information, fine arts resource are not cited
Condition etc..
Based on scheme defined by above-mentioned steps S102 to step S108, can know, after being handled using database purchase
Fine arts resource mode, after obtaining the first fine arts resource, by being parsed to the first fine arts resource, and will parsing after
The first fine arts resource the second fine arts resource stored in first database is updated, finally check that rule is right based on default
Second fine arts resource is checked.
It is easily noted that, is just stored it in database after being parsed to fine arts resource, and examined
It looks into, avoids and it is parsed and is checked again after obtaining fine arts resource in database, the inspection of fine arts resource is caused to be imitated
The low problem of rate.In addition, system when submitting to fine arts resource, can also be updated database, fine arts money is realized
The real-time update in source.
It can be seen that scheme provided herein has achieved the purpose that the inspection efficiency for improving fine arts resource, and then solve
The technical issues of inspection low efficiency for fine arts resource of having determined.
In a kind of optional scheme, the first fine arts resource to be committed is the fine arts resource in project to be committed, service
Device can obtain the first fine arts resource to be committed by project to be committed.Specifically, server obtains the access of project to be committed
Information is then based on access information and obtains the first fine arts resource corresponding to project to be committed, wherein access information at least wraps
It includes: address information, the account and password of project to be committed of the first fine arts resource.
Optionally, user can insert the access information of project to be committed by client, wherein Fig. 2 is a kind of optional
The schematic diagram of the display interface of client, as shown in Fig. 2, user can input account and password (account of project i.e. to be committed and
Password), resource address and root address (address information of i.e. above-mentioned first fine arts resource), in addition, user can also cuit compile
Code.The input of access information is completed in user, and after clicking " submission " control, client is jumped into " project pipe shown in Fig. 3
Manage interface ".In interface shown in Fig. 3, user can check respective items purpose information to by clicking " entering project " control,
Program member can be managed by click " member management " control, it is corresponding to delete by click " deleting project " control
Project, by click " modification configures " control come modification item purpose relevant configuration information.In addition, user can also pass through click " point
Hitting access " control realizes the access to newly-increased fine arts resource.Further, after the configuration of client is completed, server
It can receive access information, and fine arts resource data obtained according to the address information of the first fine arts resource in access information.
Further, server parses the first fine arts resource after obtaining the first fine arts resource, then by
Fine arts resource updates in one database are the fine arts resource data after parsing.Wherein, second will stored in first database
Fine arts resource updates are that the fine arts resource data after parsing can be obtained by two ways, wherein first way is by obtaining
The difference section between fine arts resource data after taking the second fine arts resource and parsing, and second fine arts are provided based on difference section
Source is updated.
Specifically, server extracts key message from difference section, and based on key message to the second fine arts resource into
Row updates.Wherein, key message is the information for being greater than default influence degree to the influence degree of the inspection result of fine arts resource.
It should be noted that server includes newly-increased, modification to the update operation of the second fine arts resource and deletes.
Optionally, in the case where updating operation to increase operation newly, server first parses the first fine arts resource,
Then fine arts resource data after parsing is inserted into the resource in first database and led to by the fine arts resource data after being parsed
With in table.In addition, after the determining parsing of the modes such as regular expression, XML parser and file name association also can be used in server
Fine arts resource data all associated withs path list, path list is traversed, the path of associated with is obtained,
And the path of associated with is inserted into resources relationship table.For example, the fine arts quoting resource path b and path c that path is a
Fine arts resource, also, reference type is type, then associated with path is inserted by server by the completion that such as gives an order
Operation in resources relationship table:
INSERT INTO file_relation_table(file_url,file_url_cited,cite_tpye)
VALUES (path a, path b, tpyeA);
INSERT INTO file_relation_table(file_url,file_url_cited,cite_tpye)
VALUES (path a, path c, tpyeA);
Further, server judges the corresponding resource type of fine arts resource, and according to by the fine arts of different resource type
The corresponding key message of resource is inserted into the corresponding data table in first database, to complete to the fine arts in first database
The update of resource.Wherein, in the case where fine arts resource is model resource, the peculiar pass for the model resource that server can parse
Key information, and key message is inserted into model resource tables of data;In the case where fine arts resource is special efficacy resource, server
The peculiar key message for the special efficacy resource that can be parsed, and key message is inserted into special efficacy resource data table;It is provided in the fine arts
In the case that source is scenario resources, the peculiar key message for the scenario resources that server can parse, and key message is inserted into
Into scenario resources tables of data;In the case where fine arts resource is textures resource, the spy for the textures resource that server can parse
There is key message, and key message is inserted into textures resource data table.
Optionally, in the case where updating operation to modify operation, server first parses the first fine arts resource,
Then fine arts resource data after parsing is inserted into the resource in first database and led to by the fine arts resource data after being parsed
With in table.In addition, server also judges the corresponding resource type of fine arts resource, and according to by the fine arts resource of different resource type
Corresponding key message updates in the corresponding data table in first database, to complete to the fine arts resource in first database
It updates.Wherein, in the case where fine arts resource is model resource, the peculiar crucial letter for the model resource that server can parse
Breath, and key message is updated in model resource tables of data in corresponding file path;It is special efficacy resource in fine arts resource
In the case of, the peculiar key message for the special efficacy resource that server can parse, and key message is updated to special efficacy resource data
In table in corresponding file path;In the case where fine arts resource is scenario resources, scenario resources that server can parse
Peculiar key message, and key message is updated in scenario resources tables of data in corresponding file path;It is in fine arts resource
In the case where textures resource, the peculiar key message for the textures resource that server can parse, and key message is updated to patch
In image resource tables of data in corresponding file path.Then, server passes through regular expression, XML parser and file again
The modes such as name association determine the path list of all associated withs of the fine arts resource after parsing, and obtain from first database
The path list of corresponding all associated withs, compares two path lists, obtains two paths before fine arts resource updates
The difference section of list is updated path list according to difference section.For example, fine arts resource data after parsing is all
The path list of associated with is list A, and the path list of fine arts resource updates all associated withs corresponding before is column
Table B, then list A will be present in server, but there is no the file paths in list B to be inserted into resources relationship table;Column will be present
In table B, but there is no the file paths in list A to delete from resources relationship table, wherein the master file road in resources relationship table
Diameter is resolution file path, and the storage of reference document path is data corresponding to file path to be deleted.
Optionally, in the case where updating operation is delete operation, server is first from the file path of resource general purpose table
It is middle to obtain fine arts resource to be deleted.Then judge the corresponding resource type of fine arts resource, and according to by different resource type
Fine arts resource deletes fine arts resource from the corresponding tables of data, to complete the update to the fine arts resource in first database.
Wherein, in the case where fine arts resource is model resource, server is deleted from file path corresponding in model resource tables of data
Except fine arts resource to be deleted;In the case where fine arts resource is special efficacy resource, server is corresponding from special efficacy resource data table
File path in delete fine arts resource to be deleted;In the case where fine arts resource is scenario resources, server is provided from scene
Fine arts resource to be deleted is deleted in source data table in corresponding file path;In the case where fine arts resource is textures resource,
Server is from deleting fine arts resource to be deleted in corresponding file path in textures resource data table.Then, server is deleted again
Except the fine arts resource to be deleted in all resources relationship tables in file path.
In a kind of optional scheme, first way be by the spatial cue of client to the second fine arts resource into
Row updates.Specifically, server sends the first control instruction to client first, then receives client and referred to according to the first control
The spatial cue of the second fine arts resource of feedback in the client is enabled, and is parsed to spatial cue, after being parsed
Spatial cue is finally updated the second fine arts resource based on the spatial cue after parsing.
Further, after completing the update to the fine arts resource in first database, server can be based on default
Check that rule checks the fine arts resource in first database.Wherein, checking that rule provides second fine arts based on default
Before source is checked, server obtains the first inspection rule first, and checks that the language conversion of rule is default language for first
Speech, obtains the second inspection rule, then stores second and checks rule into the second database.
It should be noted that above-mentioned second database for store check rule, wherein user can also to check rule into
Row is customized, and customized inspection rule is stored in the second database, in order to which server examines fine arts resource
It looks into.
Optionally, the inspection rule that user can customize includes but is not limited to special efficacy inspection parameter, pattern checking parameter, field
Scape inspection parameter, textures specification, Naming conventions and redundant resource inspection etc..In addition, user can be with catalogue and file designation
Check that the form of rule carries out custom rule inspection, for example, special efficacy inspection parameter set interface shown in Fig. 4, user is on road
"/" is inputted under diameter, indicates to carry out full scan inspection, pattern checking parameter setting interface as shown in Figure 5, user to fine arts resource
" model_new " is inputted under path, expression checks the fine arts resource under " model_new " catalogue.
In addition, server can also carry out canonical inspection, for example, regular expression " model_new/scene/building/
Factory/ [- _ a-z0-9 /]+_ lod01.gim $ " indicate at " model_new/scene/building/factory "
Under catalogue, with the fine arts resource of " _ lod01.gim " ending;Regular expression " model_new/scene/building/
Factory/ [- _ a-z0-9 /]+[^ (_ lod01 | _ lod02)] .gim $ " indicates in " model_new/scene/
Under building/factory " catalogue, not with the fine arts resource of " _ lod01.gim " or " _ lod02.gim " ending.If path
It is preceding that there is "-", indicate reverse search, for example, regular expression "-model_new/scene/building/factory/ [- _
A-z0-9 /]+_ lod01.gim $ " indicate except under " model_new/scene/building/factory " catalogue with " _
Fine arts resource other than the fine arts resource of lod01.gim " ending.
It should be noted that server can be rapidly found out out by checking rule for path or file designation setting
The fine arts resource of existing problem, and the fine arts resource to go wrong is shown in problem resource list by client.Specifically,
Path or file designation rule and parameter are converted to corresponding database SQL sentence (i.e. preset language) by server, so
Undesirable fine arts resource is filtered out from first database afterwards.
In a kind of optional scheme, server also receives the second control instruction, and determination is corresponding with the second control instruction
Rule mark, be then based on rule mark determined from the second database it is default check rule, and check rule based on default
Second fine arts resource is checked, inspection result is obtained.Wherein, the second control instruction is for control server to second fine arts
Resource is checked.
It should be noted that the inspection of fine arts resource, Duo Zhongjian are realized by way of data base querying in this application
Parallel execution is looked into, can achieve the effect for the fine arts resource that efficient real-time query goes wrong.
Optionally, server mainly to Naming conventions, reference missing problem, special efficacy performance and correctness, model performance and
The related contents such as correctness, scene performance, textures performance are checked.Specifically, for Naming conventions, the Server Default fine arts
Only include underscore, lowercase and data in resource name, cannot include other characters, wherein server passes through name rule
Model can not only check fine arts resource name, can also check the reference resource name of fine arts resource definition.For reference
Missing problem, when the reference resource of fine arts resource conventional bind, alternatively, defined reference resource, but quote resource and be not present
When, server determines that the fine arts quoting resource lacks.Inspection for special efficacy performance and accuracy, server mainly check file
Syntax error, parsing report an error with Confused-code, reference textures whether length and width alignment and secondary power, the textures size sum number of reference
Mesh range, special efficacy population range, the sub- special efficacy layer range of special efficacy, special efficacy dough sheet number range, special efficacy batch range etc..For model
Performance and correctness, server mainly check correctness (including mesh, mtg, gis, textures, mounting, the shader of reference resource
Deng reference resource deletion condition and quote the case where resource meets specification), the grammer of the fine arts resource gim, mtg, gis, mesh it is wrong
Accidentally, parsing reports an error and Confused-code, the textures number range of certain class model, the textures magnitude range of certain class model, certain class model
Model face number over range.For scene performance, server mainly checks the size sum number of shadow map, other textures, model
Mesh.For textures performance, server, which mainly checks, appears under same directory textures name and whether format identical, identical patch
Figure different directories there are redundancy issue, in the case where not allowing there are the record of certain textures type with the presence or absence of the textures type, certain
The limitation of the textures size of a catalogue or certain naming method, sequence frame file whether there is the textures of same directory same name.
In a kind of optional scheme, client can also obtain the submission record of fine arts resource from server, and user passes through
Client checks the corresponding file details of fine arts resource, specifically, user can check the correctness of fine arts resource, version letter
Breath, reference document and the file that is cited, model information (for example, dough sheet number, number of vertex, mounting object), special-effect information are (for example, grain
Subnumber, particle layer) etc..For the fine arts resource of change, user can be by clicking corresponding control, to check changing for fine arts resource
Emotionally condition.
It should be noted that user can be recorded by client from the submission that server obtains fine arts resource, and control beauty
The submission of art resource, which is recorded, is ranked up display according to preset order, allows the user to the entirety for quickly understanding fine arts resource
Overview.
In addition it is also necessary to explanation, the file in addition to finding out similar name comes, and client can also pass through server search
There is the fine arts resource of the similar name file of reference out.Wherein, the file of similar name is " similar documents-source file ", and is quoted
The fine arts resource of similar name file is " similar documents-reference document ".The fine arts money that " similar documents-source file " search obtains
Source is the resource of the necessary being in data warehouse, and " similar documents-reference document " as long as be then to define the reference name, no
The corresponding fine arts resource of pipe reference name, which whether there is, can all be retrieved.
In a kind of optional scheme, after being checked based on default inspection rule the second fine arts resource, service
Device can also calculate the performance cost of fine arts resource.Specifically, server extracts third fine arts money first from first database
Then third fine arts resource is sent to client by source, obtain the performance parameter of client, and determine third based on performance parameter
The performance cost of fine arts resource.Wherein, client is rendered and/or is played to third fine arts resource, generates performance parameter.
It should be noted that above-mentioned third fine arts resource can be fine arts resource updated in first database, may be used also
Think fine arts resource not updated in fine arts resource.
Optionally, user end to server sends resources measurement instruction, to detect the performance cost of resource.Server is connecing
After receiving resources measurement instruction, the fine arts resource of client request is sent to client, so that client provides the fine arts
Source is rendered or is played, at this point, the performance number of the client before client record test resource rendering and broadcasting, and provided
Performance cost peak value in source rendering or playing process calculates fine arts money by the performance change difference before and after comparison client
The performance cost in source.For example, the batch of resource special efficacy, face number;Frame per second, memory influence of the game of resource model etc..
Wherein, the performance cost of third fine arts resource meets following formula:
S=S1-S2
Wherein, S is the performance cost of third fine arts resource, and S1 is performance cost peak value, and S2 is the visitor before rendering and broadcasting
The performance number at family end.
According to another aspect of an embodiment of the present invention, a kind of inspection system of fine arts resource is additionally provided, which includes:
Server, client, server include first database and the second database.
Wherein, server obtains the first fine arts resource to be committed, parses, parsed to the first fine arts resource
Fine arts resource data afterwards, and be the fine arts number of resources after parsing by the second fine arts resource updates stored in first database
According to being checked based on default inspection rule the second fine arts resource, wherein the version of the second fine arts resource is different from the first beauty
The version of art resource;Client, for sending control instruction to server, with control server to storing in first database
Second fine arts resource is checked;First database, for storing the second fine arts resource;Second database, it is default for storing
Check rule.
In a kind of optional scheme, Fig. 6 shows a kind of frame diagram of the inspection system of optional fine arts resource, by scheming
6 it is found that fine arts resource to be committed can be stored in data warehouse, server can by user by the access entrance of client
Fine arts resource in data warehouse is parsed, and by the fine arts resource data store after parsing into first database.Separately
Outside, the update status of the fine arts resource in server also System reliability warehouse, and the more new content of fine arts resource is recorded, so
Afterwards by the fine arts resource updates of update into first database.Server can also be instructed by sending to client, obtain client
End plays or the performance parameter of rendering fine arts resource, and the performance cost of fine arts resource is calculated according to performance parameter, then
The performance cost is stored in first database.Server can also retrieve fine arts resource, and to the data after retrieval
It is shown.Finally, the customized inspection rule of user can be also stored in first database by server, server is to beauty
When art resource is checked, the customized inspection rule of user can be obtained from first database, fine arts resource is checked,
The inspection rule that systemic presupposition can also be used checks fine arts resource, and carries out classification exhibition to problematic fine arts resource
Show.
From the foregoing, it will be observed that after obtaining the first fine arts resource, by being parsed to the first fine arts resource, and will be after parsing
The first fine arts resource the second fine arts resource stored in first database is updated, finally check that rule is right based on default
Second fine arts resource is checked.
It is easily noted that, is just stored it in database after being parsed to fine arts resource, and examined
It looks into, avoids and it is parsed and is checked again after obtaining fine arts resource in database, the inspection of fine arts resource is caused to be imitated
The low problem of rate.In addition, system when submitting to fine arts resource, can also be updated database, fine arts money is realized
The real-time update in source.
It can be seen that scheme provided herein has achieved the purpose that the inspection efficiency for improving fine arts resource, and then solve
The technical issues of inspection low efficiency for fine arts resource of having determined.
It should be noted that as shown in the above, the application designs and establishes first database, and to each fine arts
The submission of resource carries out dynamic update to first database, to realize increment inspection and the test of real-time global resource, solves
Efficiency in fine arts resource checking processes.In addition, scheme provided herein is also on the basis of first database
Fine arts resource information management function and search function are realized, and realizes the property for obtaining single fine arts resource from client
It can expense.In addition, system provided herein also provides user and customizes inspection other than general fine arts resource problem checks
Look into rule functional, user can be according to the actual conditions of project customized inspection rule in systems, to ensure that fine arts resource
The scalability and versatility of inspection system.Finally, the inspection system of fine arts resource also has convenient and fast project access function sum aggregate
Middle management function reduces the cost of deployment fine arts resource checking tool.
According to another aspect of an embodiment of the present invention, a kind of check device of fine arts resource is additionally provided, as shown in fig. 7,
The device includes: to obtain module 701, parsing module 703, update module 705 and check module 707.
Wherein, module 701 is obtained, for obtaining the first fine arts resource to be committed;Parsing module 703, for first
Fine arts resource is parsed, the fine arts resource data after being parsed;Update module 705, for will be stored in first database
The second fine arts resource updates be parsing after fine arts resource data, wherein the version of the second fine arts resource be different from first beauty
The version of art resource;Module 707 is checked, for checking that rule checks the second fine arts resource based on default.
In a kind of optional scheme, update module includes: the first acquisition module and the first update module.Wherein,
One obtains module, for the difference section between the fine arts resource after obtaining the second fine arts resource and parsing;First update module,
For being updated based on difference section to the second fine arts resource.
In a kind of optional scheme, the first update module includes: the first abstraction module and the second update module.Its
In, the first abstraction module, for extracting key message from difference section, wherein key message is the inspection to fine arts resource
As a result influence degree is greater than the information of default influence degree;Second update module, for being based on key message to second fine arts
Resource is updated.
In a kind of optional scheme, update module includes: the first sending module, the first receiving module, the first parsing mould
Block and third update module.Wherein, the first sending module, for sending the first control instruction to client;First receives mould
Block, the spatial cue of the second fine arts resource fed back according to the first control instruction for receiving client in the client;First
Parsing module, the spatial cue for being parsed to spatial cue, after being parsed;Third update module, for based on solution
Spatial cue after analysis is updated the second fine arts resource.
In a kind of optional scheme, the check device of fine arts resource further include: second obtain module, conversion module and
Memory module.Wherein, second module is obtained, checks rule for obtaining first;Conversion module, for checking rule for first
Language conversion is preset language, obtains the second inspection rule;Memory module checks rule to the second database for storing second
In.
In a kind of optional scheme, check that module includes: the second receiving module, the first determining module, the second determining mould
Block and the first inspection module.Wherein, the second receiving module, for receiving the second control instruction, wherein the second control instruction is used
The second fine arts resource is checked in control server;First determining module, it is corresponding with the second control instruction for determination
Rule mark;Second determining module determines default inspection rule for rule-based mark from the second database;First checks
Module obtains inspection result for checking that rule checks the second fine arts resource based on default.
In a kind of optional scheme, the check device of fine arts resource further include: the second abstraction module, the second sending module
And third obtains module.Wherein, the second abstraction module, for extracting third fine arts resource from first database;Second hair
Module is sent, for third fine arts resource to be sent to client, wherein client to third fine arts resource carry out rendering and/or
It plays, generates performance parameter.Third obtains module, determines for obtaining the performance parameter of client, and based on performance parameter
The performance cost of three fine arts resources.
In a kind of optional scheme, obtaining module includes: that the 4th acquisition module and the 5th obtain module.Wherein,
Four obtain module, for obtaining the access information of project to be committed, wherein access information includes at least: the first fine arts resource
Address information, the account of project to be committed and password;5th obtains module, for obtaining project institute to be committed based on access information
Corresponding first fine arts resource.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which includes storage
Program, wherein equipment where control storage medium executes the inspection method of above-mentioned fine arts resource in program operation.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, which is used to run program,
In, program executes the inspection method of the above-mentioned fine arts resource when running.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (12)
1. a kind of inspection method of fine arts resource characterized by comprising
Obtain the first fine arts resource to be committed;
First fine arts resource is parsed, the fine arts resource data after being parsed;
By the fine arts resource data that the second fine arts resource updates stored in first database are after the parsing, wherein described
The version of second fine arts resource is different from the version of first fine arts resource;
Second fine arts resource is checked based on default inspection rule.
2. the method according to claim 1, wherein the second fine arts resource updates that will be stored in first database
For the fine arts resource data after the parsing, comprising:
The difference section between fine arts resource after obtaining second fine arts resource and the parsing;
Second fine arts resource is updated based on the difference section.
3. according to the method described in claim 2, it is characterized in that, based on the difference section to second fine arts resource into
Row updates, comprising:
Key message is extracted from the difference section, wherein the key message is the shadow to the inspection result of fine arts resource
The degree of sound is greater than the information of default influence degree;
Second fine arts resource is updated based on the key message.
4. the method according to claim 1, wherein the second fine arts resource updates that will be stored in first database
For the fine arts resource data after the parsing, comprising:
The first control instruction is sent to client;
Second fine arts resource that the client is fed back according to first control instruction is received in the client
Spatial cue;
The spatial cue is parsed, the spatial cue after being parsed;
Second fine arts resource is updated based on the spatial cue after the parsing.
5. the method according to claim 1, wherein checking rule to second fine arts resource based on default
Before being checked, the method also includes:
It obtains first and checks rule;
It checks that the language conversion of rule is preset language for described first, obtains the second inspection rule;
Storing described second checks rule into the second database.
6. according to the method described in claim 5, it is characterized in that, based on it is default check rule to second fine arts resource into
Row checks, comprising:
Receive the second control instruction, wherein second control instruction for control server to second fine arts resource into
Row checks;
Determine rule mark corresponding with second control instruction;
The default inspection rule is determined from second database based on the rule mark;
Second fine arts resource is checked based on the default inspection rule, obtains inspection result.
7. the method according to claim 1, wherein checking rule to second fine arts resource based on default
After being checked, the method also includes:
Third fine arts resource is extracted from the first database;
The third fine arts resource is sent to client, wherein the client renders the third fine arts resource
And/or play, generate performance parameter;
The performance parameter of the client is obtained, and determines that the performance of the third fine arts resource is opened based on the performance parameter
Pin.
8. the method according to claim 1, wherein obtaining the first fine arts resource to be committed, comprising:
Obtain the access information of project to be committed, wherein the access information includes at least: the address of first fine arts resource
The account and password of information, the project to be committed;
The first fine arts resource corresponding to the project to be committed is obtained based on the access information.
9. a kind of inspection system of fine arts resource characterized by comprising
Server obtains the first fine arts resource to be committed, parses to first fine arts resource, the beauty after being parsed
Art resource data, and be the fine arts resource data after the parsing by the second fine arts resource updates stored in first database,
Second fine arts resource is checked based on default inspection rule, wherein the version of second fine arts resource is different from
The version of first fine arts resource;
Client, for sending control instruction to the server, to control the server to depositing in the first database
Second fine arts resource of storage is checked;
Wherein, the server includes:
First database, for storing second fine arts resource;
Second database, for storing the default inspection rule.
10. a kind of check device of fine arts resource characterized by comprising
Module is obtained, for obtaining the first fine arts resource to be committed;
Parsing module, for being parsed to first fine arts resource, the fine arts resource data after being parsed;
Update module, the second fine arts resource updates for will store in first database are the fine arts number of resources after the parsing
According to, wherein the version of second fine arts resource is different from the version of first fine arts resource;
Module is checked, for checking that rule checks second fine arts resource based on default.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require any one of 1 to 8 described in fine arts resource inspection method.
12. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require any one of 1 to 8 described in fine arts resource inspection method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910122358.4A CN109783137A (en) | 2019-02-19 | 2019-02-19 | Inspection method, the device and system of fine arts resource |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910122358.4A CN109783137A (en) | 2019-02-19 | 2019-02-19 | Inspection method, the device and system of fine arts resource |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109783137A true CN109783137A (en) | 2019-05-21 |
Family
ID=66503357
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910122358.4A Pending CN109783137A (en) | 2019-02-19 | 2019-02-19 | Inspection method, the device and system of fine arts resource |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109783137A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110262976A (en) * | 2019-06-21 | 2019-09-20 | 深圳市腾讯网域计算机网络有限公司 | Analytic method, device, equipment and the storage medium of game resource file |
CN111589154A (en) * | 2020-05-20 | 2020-08-28 | 苏州沁游网络科技有限公司 | Resource normalization detection and optimization method, device, equipment and storage medium |
CN111782187A (en) * | 2020-07-03 | 2020-10-16 | 上海莉莉丝科技股份有限公司 | System and method for bidirectional development of program resource and art resource, and computer-readable storage medium |
CN111880833A (en) * | 2020-08-07 | 2020-11-03 | 网易(杭州)网络有限公司 | Resource management method, device, equipment and storage medium |
CN112199093A (en) * | 2020-10-15 | 2021-01-08 | 腾讯科技(深圳)有限公司 | Resource checking method, device, equipment and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040111497A1 (en) * | 2002-08-13 | 2004-06-10 | International Business Machines Corporation | Resource management method and system with rule based consistency check |
US20130080641A1 (en) * | 2011-09-26 | 2013-03-28 | Knoa Software, Inc. | Method, system and program product for allocation and/or prioritization of electronic resources |
CN104657170A (en) * | 2013-11-25 | 2015-05-27 | 腾讯科技(上海)有限公司 | Data updating method, device and system |
CN105260306A (en) * | 2015-10-20 | 2016-01-20 | 网易(杭州)网络有限公司 | Performance detection method and device of art materials in game program |
CN105808227A (en) * | 2014-12-31 | 2016-07-27 | 北京畅游天下网络技术有限公司 | Art resource file detection method and device |
-
2019
- 2019-02-19 CN CN201910122358.4A patent/CN109783137A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040111497A1 (en) * | 2002-08-13 | 2004-06-10 | International Business Machines Corporation | Resource management method and system with rule based consistency check |
US20130080641A1 (en) * | 2011-09-26 | 2013-03-28 | Knoa Software, Inc. | Method, system and program product for allocation and/or prioritization of electronic resources |
CN104657170A (en) * | 2013-11-25 | 2015-05-27 | 腾讯科技(上海)有限公司 | Data updating method, device and system |
CN105808227A (en) * | 2014-12-31 | 2016-07-27 | 北京畅游天下网络技术有限公司 | Art resource file detection method and device |
CN105260306A (en) * | 2015-10-20 | 2016-01-20 | 网易(杭州)网络有限公司 | Performance detection method and device of art materials in game program |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110262976A (en) * | 2019-06-21 | 2019-09-20 | 深圳市腾讯网域计算机网络有限公司 | Analytic method, device, equipment and the storage medium of game resource file |
CN111589154A (en) * | 2020-05-20 | 2020-08-28 | 苏州沁游网络科技有限公司 | Resource normalization detection and optimization method, device, equipment and storage medium |
CN111589154B (en) * | 2020-05-20 | 2021-05-07 | 苏州沁游网络科技有限公司 | Resource normalization detection and optimization method, device, equipment and storage medium |
CN111782187A (en) * | 2020-07-03 | 2020-10-16 | 上海莉莉丝科技股份有限公司 | System and method for bidirectional development of program resource and art resource, and computer-readable storage medium |
CN111782187B (en) * | 2020-07-03 | 2024-03-22 | 上海莉莉丝科技股份有限公司 | Bidirectional development system, method and computer readable storage medium for program resource and art resource |
CN111880833A (en) * | 2020-08-07 | 2020-11-03 | 网易(杭州)网络有限公司 | Resource management method, device, equipment and storage medium |
CN112199093A (en) * | 2020-10-15 | 2021-01-08 | 腾讯科技(深圳)有限公司 | Resource checking method, device, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109783137A (en) | Inspection method, the device and system of fine arts resource | |
US11714792B2 (en) | Creating data in a data store using a dynamic ontology | |
US8392896B2 (en) | Software test bed generation | |
KR101026606B1 (en) | Integrating design, deployment, and management phases for systems | |
US7634498B2 (en) | Indexing XML datatype content system and method | |
JP5536851B2 (en) | Method and system for symbolic linking and intelligent classification of information | |
CN110168515A (en) | System for analyzing data relationship to support query execution | |
US20020078041A1 (en) | System and method of translating a universal query language to SQL | |
US7831614B2 (en) | System and method for generating SQL using templates | |
KR20040079336A (en) | Architecture for distributed computing system and automated design, deployment, and management of distributed applications | |
CN101308505A (en) | Dynamic data access in a computer system via remote services | |
DE202014010938U1 (en) | Omega name: name generation and derivation | |
US20070033212A1 (en) | Semantic model development and deployment | |
CN106062751A (en) | Managing data profiling operations related to data type | |
CN101706810A (en) | Method and device for querying databases | |
EP1477915A2 (en) | System and method of data modelling | |
CN113282555A (en) | Data processing method, device, equipment and storage medium | |
CN100456296C (en) | Method for sequencing multi-medium file search engine | |
CN115705313A (en) | Data processing method, device, equipment and computer readable storage medium | |
CN110209780A (en) | A kind of question template generation method, device, server and storage medium | |
US6735594B1 (en) | Transparent parameter marker support for a relational database over a network | |
CN110222032A (en) | A kind of generalised event model based on software data analysis | |
CA3153550A1 (en) | Core recommendation method, device and system | |
US20040172382A1 (en) | System and method for generating a request for information about selected objects | |
CN107533559A (en) | Data structure, the model for filling data structure and the method being programmed using data structure to processing unit |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190521 |
|
RJ01 | Rejection of invention patent application after publication |