CN109821240B - Method and device for realizing resource LOD (load on demand) classification based on Unity - Google Patents

Method and device for realizing resource LOD (load on demand) classification based on Unity Download PDF

Info

Publication number
CN109821240B
CN109821240B CN201811479200.4A CN201811479200A CN109821240B CN 109821240 B CN109821240 B CN 109821240B CN 201811479200 A CN201811479200 A CN 201811479200A CN 109821240 B CN109821240 B CN 109821240B
Authority
CN
China
Prior art keywords
lod
resource
module
level
unity
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
CN201811479200.4A
Other languages
Chinese (zh)
Other versions
CN109821240A (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.)
Guangzhou Xishanju Network Technology Co ltd
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Guangzhou Seasun Entertainment Network Technology Co ltd
Zhuhai Kingsoft Online Game Technology 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 Guangzhou Seasun Entertainment Network Technology Co ltd, Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Guangzhou Seasun Entertainment Network Technology Co ltd
Priority to CN201811479200.4A priority Critical patent/CN109821240B/en
Publication of CN109821240A publication Critical patent/CN109821240A/en
Application granted granted Critical
Publication of CN109821240B publication Critical patent/CN109821240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method for realizing LOD classification of resources based on Unity, which comprises the following steps: loading a resource LOD; ranking based on the type of resource LOD loaded; packing the resource LOD according to the level; uploading the resource packet to a server; the application terminal judges the hardware performance and matches the resource packet with the highest support level; downloading the resource packet with the highest matching level or the relatively lower matching level; loading and selecting a technical LOD gear; the program layer adjusts the display parameters. An apparatus for implementing resource LOD ranking based on Unity, comprising: the device comprises a loading module, a grading module, a packaging module, a communication module, a judging module, a downloading module, a gear selecting module and a parameter adjusting module. The invention realizes the effect that different levels of resources are matched with mobile phones with different performances, thereby utilizing the hardware performance of the mobile phone to the maximum extent, showing the best game effect which can be achieved by the mobile phone, meeting the pursuit of users on the game effect and enabling operators to obtain higher market benefits.

Description

Method and device for realizing resource LOD (load on demand) classification based on Unity
Technical Field
The invention relates to a method and a device for realizing LOD (level of detail) classification of resources based on Unity, belonging to the field of game development.
Background
At present, due to the fact that the speed of mobile phone technology iteration is gradually increased, the performance gap is more and more obvious for individual mobile phones. The mobile phone with good hardware performance generally has the advantages of large bandwidth, strong computing capability and the like, and when the advantages are applied to the field of mobile phone games, the mobile phone can adopt higher application standards, so that the display is higher in definition, and the mapping is more vivid.
At present, when the performance of an application terminal is graded, the mobile game industry generally operates in a program layer, namely, on the premise of using the same game resource, the performance of a mobile phone is graded, and the mobile phones in different gears use different game parameters, so that the game is suitable for more terminals. However, the quality of detail and the performance during the game play is fundamentally determined by the game resources, especially in the chartlet section. If a larger size, higher compression quality map could be used, the experience of the game would be greatly improved. However, in the early stage of game release, operators generally adopt a form that only one resource package exists for releasing a single game client, and meanwhile, in order to meet a larger user size, the consideration of client resources is greatly inclined to be compatible with a lower-configuration mobile phone.
Under such a background, even if the mobile phone performance of the user is strong enough, only the client integrated by the compromised operation can be used. This will not be enough to attract some users to continue the game, but will lose the high-end user population to the operator, and will affect the profit of the game operation.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a method and a device for realizing LOD classification of resources based on Unity, which comprises the following steps:
s1, loading a resource LOD;
s2, respectively carrying out grading operation based on the types of the LOD of the loaded resources;
s3, performing packing operation on the graded resource LOD according to the level;
s4, uploading the resource packet to a server;
s5, the application terminal judges the hardware performance and matches the resource packet with the highest usable level according to the hardware performance;
s6, downloading the resource packet with the highest matching level or the relatively lower matching level;
s7, loading and selecting a technical LOD gear;
and S8, the program layer adjusts the display parameters according to the selected LOD gear.
Further, the resource LOD includes models, maps, and music.
Further, prefab is used to make models of different levels, which are divided into one or more levels by adjusting the particles and maps during the manufacturing process.
Furthermore, meta is used for making maps of different levels, map resources of different precisions are packaged by modifying parameters in the making process, and are divided into one or more levels.
Further, music is distinguished using different saving paths, divided into one or more levels, and the music of corresponding quality is saved in the levels.
Furthermore, the setting of the technical LOD gear is divided into one or more gears by adjusting a configuration item controlled by a program and performing configuration table operation according to parameters of the configuration item.
Further, the configuration items include resolution, antialiasing, rendering level, soft light effect, quality of map, image level, PBR level, self-shading and sampling multiple, skin level, population, and post-processing.
An apparatus for implementing resource LOD classification based on Unity, comprising:
the loading module is used for loading the resource LOD;
the grading module is used for respectively carrying out grading operation based on the type of the LOD of the loaded resource;
the packaging module is used for performing packaging operation on the graded resource LOD according to the grade;
the communication module is used for uploading the resource packet to the server;
the judging module is used for judging the hardware performance by the application terminal and matching the resource packet with the highest available level according to the hardware performance;
the downloading module is used for downloading the resource package with the highest matching level or the relatively lower matching level;
the gear selection module is used for loading and carrying out technical LOD gear selection; and
and the parameter adjusting module is used for adjusting the display parameters by the program layer.
A computer-readable storage medium having stored thereon computer instructions, characterized in that the instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 7.
The beneficial effects of the invention are as follows: the effect that resources of different levels are matched with mobile phones of different performances is achieved, so that the hardware performance of the mobile phone is utilized to the maximum extent, the best game effect which can be achieved by the mobile phone is shown, the pursuit of users for the game effect is met, and operators can obtain higher market benefits.
Drawings
FIG. 1 is a general flow diagram according to the present invention;
fig. 2 shows a connection diagram of the device according to the invention.
Detailed Description
It should be recognized that embodiments of the present invention can be realized and implemented in computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium configured with the computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner according to the methods and figures described in the detailed description. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Further, the operations of processes described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) collectively executed on one or more processors, by hardware, or combinations thereof. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable interface, including but not limited to a personal computer, mini computer, mainframe, workstation, networked or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and the like. Aspects of the invention may be embodied in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optically read and/or write storage medium, RAM, ROM, or the like, such that it may be read by a programmable computer, which when read by the storage medium or device, is operative to configure and operate the computer to perform the procedures described herein. Further, the machine-readable code, or portions thereof, may be transmitted over a wired or wireless network. The invention described herein includes these and other different types of non-transitory computer-readable storage media when such media include instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. The invention also includes the computer itself when programmed according to the methods and techniques described herein.
A computer program can be applied to input data to perform the functions described herein to transform the input data to generate output data that is stored to non-volatile memory. The output information may also be applied to one or more output devices, such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including particular visual depictions of physical and tangible objects produced on a display.
It is noted that, as used in this disclosure, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Furthermore, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any combination of one or more of the listed items.
It should be understood that the use of any and all examples, or exemplary language ("e.g.," such as "etc.), provided herein is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed.
Embodiments of the invention will be further described with reference to the accompanying drawings in which:
referring to fig. 1, a general flow chart according to the present invention specifically includes the following steps:
s1, loading a resource LOD; the resource LOD comprises models, maps, music, actions and other resources involved in the game development process;
s2, respectively carrying out grading operation based on the types of the LOD of the loaded resources; when different types of resources are subjected to hierarchical operation, the adopted methods are different according to the types of the resources; we divide the model into one or more levels by adjusting the number of particles and the quality of the map that the model needs to use during the process of using the model made by prefab, for example: the system is divided into a high-level, a standard level and a low-level, because prefab is only some configuration information in a unity engine and occupies a small space, when resources are integrated into the same bag body, the default activation of the system is the effect of a standard layer, when a high-level product is used, the high-level layer is activated, and similarly, when a low-level product is used, the low-level layer is activated. Therefore, model resources read by the mobile phones in different gears are also in different levels, and the actually divided level number is adjusted according to the application environment and the requirements of project development; when manufacturing different levels of chartlets by using meta, packing chartlet resources with different precisions by modifying parameters, and dividing the chartlet resources into one or more levels; for music and other resources which cannot be graded through parameter adjustment, different storage paths are uniformly adopted for distinguishing, the resources are graded into one or more grades according to the quality of the resources, and the music and other resources with corresponding quality are stored according to the grades; the model and the map can be further divided in the form after being subjected to level division;
s3, performing packing operation on the graded resource LOD according to the level;
s4, uploading the resource packet to a server;
s5, the application terminal judges the hardware performance and matches the resource packet with the highest usable level according to the hardware performance;
s6, downloading the resource package with the highest matching level or the relatively lower matching level;
s7, loading and selecting a technical LOD gear; setting the technical LOD gear, performing configuration table operation by adjusting a configuration item controlled by a program, and dividing the technical LOD gear into one or more gears according to parameters of the configuration item; the configuration items comprise resolution, antialiasing, rendering grade, soft light effect, chartlet quality, image grade, PBR grade, self shadow and sampling multiple, skin grade, particle number, post processing effect and parameters needing to be adjusted at a program layer;
and S8, the program layer adjusts the display parameters according to the selected LOD gear.
Referring to fig. 2, a connection diagram of the device according to the present invention is shown, which specifically includes the following devices:
the loading module is connected with the grading module to realize interaction and is used for loading the resource LOD;
the grading module is connected with the packing module to realize interaction and is used for respectively carrying out grading operation based on the type of the LOD of the loaded resource;
the packaging module is connected with the communication module to realize interaction and is used for carrying out packaging operation on the graded resource LOD according to the grade;
the communication module is connected with the judgment module to realize interaction and is used for uploading the resource packet to the server;
the judging module is connected with the downloading module to realize interaction and is used for judging the hardware performance by the application terminal and matching the resource packet with the highest usable level according to the hardware performance;
the downloading module is connected with the gear selection module to realize interaction and is used for downloading the resource package with the highest matching level or the relatively lower matching level;
the gear selection module is connected with the parameter adjustment module to realize interaction and is used for loading and carrying out technical LOD gear selection;
and the parameter adjusting module is used for adjusting the display parameters by the program layer.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and the present invention shall fall within the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means. The invention is capable of other modifications and variations in its technical solution and/or its implementation, within the scope of protection of the invention.

Claims (8)

1. A method for realizing LOD classification of resources based on Unity comprises the following steps:
s1, loading a resource LOD;
s2, respectively carrying out grading operation based on the types of the LOD of the loaded resources;
s3, performing packing operation on the graded resource LOD according to the level;
s4, uploading the resource packet to a server;
s5, the application terminal judges the hardware performance and matches the resource packet with the highest usable level according to the hardware performance;
s6, downloading the resource package with the highest matching level or the relatively lower matching level;
s7, loading and selecting a technical LOD gear; setting the technical LOD gear, adjusting a program-controlled configuration item, performing table configuration operation, and dividing into one or more gears according to parameters of the configuration item;
and S8, the program layer adjusts the display parameters according to the selected LOD gear.
2. The Unity-based method of implementing a resource LOD hierarchy as claimed in claim 1, wherein the resource LOD includes a model, a map, and music.
3. The Unity-based implementation-oriented resource LOD hierarchy method of claim 2, wherein prefab is used to make models of different levels, which are divided into one or more levels by adjusting particles and maps during the manufacturing process.
4. The Unity-based resource LOD ranking method according to claim 2, wherein meta is used to make different levels of charting, and different precision charting resources are packaged by modifying parameters during the making process and divided into one or more levels.
5. The Unity-based method for realizing LOD ranking of resources according to claim 2 wherein music is distinguished using different saving paths, divided into one or more levels, and saved with the corresponding qualities in level.
6. The Unity-based implementation-oriented resource LOD hierarchy method of claim 1, wherein the configuration items comprise resolution, antialiasing, rendering level, soft lighting effect, mapping quality, image level, PBR level, self-shading and sampling multiple, skin level, population count, and post-processing.
7. An apparatus for implementing resource LOD ranking based on Unity, comprising:
the loading module is used for loading the resource LOD;
the grading module is used for respectively carrying out grading operation based on the type of the LOD of the loaded resource;
the packing module is used for carrying out packing operation on the graded resource LOD according to the grade;
the communication module is used for uploading the resource packet to the server;
the judging module is used for judging the hardware performance by the application terminal and matching the resource packet with the highest usable level according to the hardware performance;
the downloading module is used for downloading the resource package with the highest matching level or the relatively lower matching level;
the gear selection module is used for loading and carrying out technical LOD gear selection; setting the technical LOD gear, performing configuration table operation by adjusting a configuration item controlled by a program, and dividing the technical LOD gear into one or more gears according to parameters of the configuration item; and
and the parameter adjusting module is used for adjusting the display parameters by the program layer.
8. A computer-readable storage medium having stored thereon computer instructions, characterized in that the instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 6.
CN201811479200.4A 2018-12-05 2018-12-05 Method and device for realizing resource LOD (load on demand) classification based on Unity Active CN109821240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811479200.4A CN109821240B (en) 2018-12-05 2018-12-05 Method and device for realizing resource LOD (load on demand) classification based on Unity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811479200.4A CN109821240B (en) 2018-12-05 2018-12-05 Method and device for realizing resource LOD (load on demand) classification based on Unity

Publications (2)

Publication Number Publication Date
CN109821240A CN109821240A (en) 2019-05-31
CN109821240B true CN109821240B (en) 2022-08-30

Family

ID=66859281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811479200.4A Active CN109821240B (en) 2018-12-05 2018-12-05 Method and device for realizing resource LOD (load on demand) classification based on Unity

Country Status (1)

Country Link
CN (1) CN109821240B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078392B (en) * 2019-11-04 2023-08-29 珠海西山居数字科技有限公司 Scene object Mipmap Level statistical method and system based on Unity
CN112783834B (en) * 2021-01-27 2023-07-25 上海淇玥信息技术有限公司 Service resource online restocking method and device and electronic equipment
CN113867837A (en) * 2021-09-24 2021-12-31 埃洛克航空科技(北京)有限公司 Configuration parameter setting method and device for terminal equipment, terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929961A (en) * 2012-10-10 2013-02-13 北京锐安科技有限公司 Data processing method and device thereof based on building quick data staging channel
CN103500467A (en) * 2013-10-21 2014-01-08 深圳市易尚展示股份有限公司 Constructive method of image-based three-dimensional model
CN104991763A (en) * 2015-06-04 2015-10-21 珠海金山网络游戏科技有限公司 Universal game interface behavior control system
CN105045970A (en) * 2015-07-01 2015-11-11 国家电网公司 Simulation system for dynamically generating three-dimensional scene on the basis of Unity, and implementation method thereof
CN105224323A (en) * 2015-09-29 2016-01-06 北京畅游天下网络技术有限公司 A kind of resource packaging method of tree-dimensional animation engine and device
CN106776012A (en) * 2016-11-28 2017-05-31 武汉秀宝软件有限公司 The management method and system of a kind of virtual resource
CN106815130A (en) * 2016-12-26 2017-06-09 珠海金山网络游戏科技有限公司 A kind of method and system of the game quality grading based on mobile terminal hardware

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929961A (en) * 2012-10-10 2013-02-13 北京锐安科技有限公司 Data processing method and device thereof based on building quick data staging channel
CN103500467A (en) * 2013-10-21 2014-01-08 深圳市易尚展示股份有限公司 Constructive method of image-based three-dimensional model
CN104991763A (en) * 2015-06-04 2015-10-21 珠海金山网络游戏科技有限公司 Universal game interface behavior control system
CN105045970A (en) * 2015-07-01 2015-11-11 国家电网公司 Simulation system for dynamically generating three-dimensional scene on the basis of Unity, and implementation method thereof
CN105224323A (en) * 2015-09-29 2016-01-06 北京畅游天下网络技术有限公司 A kind of resource packaging method of tree-dimensional animation engine and device
CN106776012A (en) * 2016-11-28 2017-05-31 武汉秀宝软件有限公司 The management method and system of a kind of virtual resource
CN106815130A (en) * 2016-12-26 2017-06-09 珠海金山网络游戏科技有限公司 A kind of method and system of the game quality grading based on mobile terminal hardware

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
虚拟现实中人物设计及场景实现;方昱琨;《中国优秀博硕士学位论文全文数据库(硕士)》;20180815;第40-44页 *

Also Published As

Publication number Publication date
CN109821240A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
KR102501992B1 (en) Data processing method and related products
CN109821240B (en) Method and device for realizing resource LOD (load on demand) classification based on Unity
CN112291484B (en) Video synthesis method and device, electronic equipment and storage medium
US20190065028A1 (en) Agent-based platform for the development of multi-user virtual reality environments
CN111190718A (en) Method, device and system for realizing task scheduling
CN108388988A (en) Synergetic office work method, system and computer readable storage medium based on block chain
US8620998B2 (en) Mobile application deployment for distributed computing environments
CN106155750A (en) The loading method of a kind of resource file and device
CN109067890A (en) A kind of CDN node edge calculations system based on docker container
US11934814B2 (en) Application porting method and apparatus, device, and medium
CN102800045A (en) Image processing method and device
US10521199B2 (en) System and method for developing mobile based applications using model driven development
EP3913583A1 (en) Method and system for filtering shadow maps with sub-frame accumulation
CN108305316A (en) Rendering intent, device, medium based on AR scenes and computing device
US20200274758A1 (en) Provisioning hybrid cloud resources in an operating environment
CN108399038A (en) A kind of picture synthetic method and mobile terminal
KR102488926B1 (en) Addressable assets in software development
CN115098082A (en) Production line script generation method, system, equipment and medium based on Jenkins plug-in
CN115175746A (en) Content scheduling, management and programming system
CN105957133A (en) Method and device for loading maps
US11366823B2 (en) Method and system for transforming and delivering digital assets over a network
CN114511438A (en) Method, device and equipment for controlling load
CN114491914A (en) Model simplifying method and device, terminal device and readable storage medium
WO2023025233A1 (en) Method and apparatus for writing animation playback program package, electronic device, and storage medium
CN117581268A (en) Rendering visual representations of luminaires by reusing light values

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 4th Floor, No. 6, 8, Jianzhong Road, Tianhe District, Guangzhou City, Guangdong Province, 510000 Room No. 406

Patentee after: Guangzhou Xishanju Network Technology Co.,Ltd.

Patentee after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Address before: 3-04-1, No. 309, Huangpu Avenue, Tianhe District, Guangzhou, Guangdong 510000

Patentee before: GUANGZHOU SEASUN ENTERTAINMENT NETWORK TECHNOLOGY Co.,Ltd.

Patentee before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.